[PATCH 1/3] wined3d: Prepare GL textures in surface_load_ds_location.

Stefan Dösinger stefandoesinger at gmx.at
Sun Jan 17 08:40:04 CST 2016


This is necessary for depth blits now that the FBO code doesn't do that
on its own any more.

This fixes bug 39805.

Signed-off-by: Stefan Dösinger <stefandoesinger at gmx.at>
---
 dlls/wined3d/surface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 6b5f33e..829a515 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3631,10 +3631,10 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
         return;
     }
 
+    wined3d_surface_prepare(surface, context, location);
     if (surface->locations & WINED3D_LOCATION_DISCARDED)
     {
         TRACE("Surface was discarded, no need copy data.\n");
-        wined3d_surface_prepare(surface, context, location);
         surface->locations &= ~WINED3D_LOCATION_DISCARDED;
         surface->locations |= location;
         surface->ds_current_size.cx = surface->resource.width;
-- 
2.4.10




More information about the wine-patches mailing list