[PATCH 1/5] wined3d: Also update ds_current_size if there's no current DS location in surface_load_ds_location().

Henri Verbeet hverbeet at codeweavers.com
Mon Apr 18 17:07:56 CDT 2011


---
 dlls/wined3d/surface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index bf379ca..d302d35 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4390,6 +4390,8 @@ void surface_load_ds_location(IWineD3DSurfaceImpl *surface, struct wined3d_conte
          * should do. */
         FIXME("No up to date depth stencil location.\n");
         surface->flags |= location;
+        surface->ds_current_size.cx = surface->resource.width;
+        surface->ds_current_size.cy = surface->resource.height;
         return;
     }
 
-- 
1.7.3.4




More information about the wine-patches mailing list