Henri Verbeet : wined3d: Use the correct mask for depth/ stencil locations in surface_load_ds_location().
Alexandre Julliard
julliard at winehq.org
Mon Apr 18 11:10:51 CDT 2011
Module: wine
Branch: master
Commit: a5983e0c3d2a60e1455014bead99334f00349acf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a5983e0c3d2a60e1455014bead99334f00349acf
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Apr 15 18:33:36 2011 +0200
wined3d: Use the correct mask for depth/stencil locations in surface_load_ds_location().
---
dlls/wined3d/surface.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 6daf886..4a72183 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4404,8 +4404,13 @@ void surface_load_ds_location(IWineD3DSurfaceImpl *surface, struct wined3d_conte
return;
}
- if (!(surface->flags & SFLAG_LOCATIONS))
+ if (!(surface->flags & SFLAG_DS_LOCATIONS))
{
+ /* This mostly happens when a depth / stencil is used without being
+ * cleared first. In principle we could upload from sysmem, or
+ * explicitly clear before first usage. For the moment there don't
+ * appear to be a lot of applications depending on this, so a FIXME
+ * should do. */
FIXME("No up to date depth stencil location.\n");
surface->flags |= location;
return;
More information about the wine-cvs
mailing list