wined3d: surface_load_ds_location can handle WINED3D_LOCATION_DISCARDED.

This commit is contained in:
Stefan Dösinger 2014-03-03 10:15:35 +01:00 committed by Alexandre Julliard
parent 6749bdf66b
commit dfbff712f4
1 changed files with 2 additions and 1 deletions

View File

@ -5123,7 +5123,8 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location)
if (surface->resource.usage & WINED3DUSAGE_DEPTHSTENCIL) if (surface->resource.usage & WINED3DUSAGE_DEPTHSTENCIL)
{ {
if (location == WINED3D_LOCATION_TEXTURE_RGB && surface->locations & WINED3D_LOCATION_DRAWABLE) if (location == WINED3D_LOCATION_TEXTURE_RGB
&& surface->locations & (WINED3D_LOCATION_DRAWABLE | WINED3D_LOCATION_DISCARDED))
{ {
struct wined3d_context *context = context_acquire(device, NULL); struct wined3d_context *context = context_acquire(device, NULL);
surface_load_ds_location(surface, context, location); surface_load_ds_location(surface, context, location);