=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: surface_load_ds_location can handle WINED3D_LOCATION_DISCARDED.
Alexandre Julliard
julliard at winehq.org
Mon Mar 3 13:20:10 CST 2014
Module: wine
Branch: master
Commit: dfbff712f414e5ff8903802e56f379e63be081e3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfbff712f414e5ff8903802e56f379e63be081e3
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Mon Mar 3 10:15:35 2014 +0100
wined3d: surface_load_ds_location can handle WINED3D_LOCATION_DISCARDED.
---
dlls/wined3d/surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 6af6158..7c5f053 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5123,7 +5123,8 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location)
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);
surface_load_ds_location(surface, context, location);
More information about the wine-cvs
mailing list