=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Prepare GL textures in surface_load_ds_location.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 18 11:09:03 CST 2016


Module: wine
Branch: master
Commit: 638f6c1ac81a4be0ff3f290a81bc5d3472262839
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=638f6c1ac81a4be0ff3f290a81bc5d3472262839

Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date:   Sun Jan 17 14:40:04 2016 +0000

wined3d: Prepare GL textures in surface_load_ds_location.

Signed-off-by: Stefan Dösinger <stefandoesinger at gmx.at>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;




More information about the wine-cvs mailing list