[PATCH 1/5] wined3d: Use the correct mask for depth/stencil locations in surface_load_ds_location().
Henri Verbeet
hverbeet at codeweavers.com
Fri Apr 15 11:33:36 CDT 2011
---
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;
--
1.7.3.4
More information about the wine-patches
mailing list