Henri Verbeet : wined3d: Remove a redundant check from prepare_ds_clear().
Alexandre Julliard
julliard at winehq.org
Tue May 4 13:06:35 CDT 2010
Module: wine
Branch: master
Commit: 312bacec96ef63d3eb47bbaf0be650a0b31da99a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=312bacec96ef63d3eb47bbaf0be650a0b31da99a
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon May 3 22:03:29 2010 +0200
wined3d: Remove a redundant check from prepare_ds_clear().
The rectangle count doesn't really matter. If the first rectangle doesn't
cover the entire draw_rect we need to load the depth/stencil surface.
---
dlls/wined3d/device.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index a59cf02..585edd5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4404,16 +4404,6 @@ static void prepare_ds_clear(IWineD3DSurfaceImpl *ds, struct wined3d_context *co
return;
}
- if (rect_count > 1)
- {
- /* Multiple clear rects, full load. Strictly speaking this can
- * also be a full draw_rect clear, but it's probably rare enough
- * that we don't care. */
- surface_load_ds_location(ds, context, location);
- surface_modify_ds_location(ds, location, ds->ds_current_size.cx, ds->ds_current_size.cy);
- return;
- }
-
IntersectRect(&r, draw_rect, clear_rect);
if (EqualRect(&r, draw_rect))
{
More information about the wine-cvs
mailing list