From a5983e0c3d2a60e1455014bead99334f00349acf Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 15 Apr 2011 18:33:36 +0200 Subject: [PATCH] wined3d: Use the correct mask for depth/stencil locations in surface_load_ds_location(). --- dlls/wined3d/surface.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 6daf8868bd..4a72183aed 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;