wined3d: Use the correct mask for depth/stencil locations in surface_load_ds_location().

This commit is contained in:
Henri Verbeet 2011-04-15 18:33:36 +02:00 committed by Alexandre Julliard
parent ed64b3761d
commit a5983e0c3d

View File

@ -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;