[PATCH 6/6] wined3d: get_drawable_size() needs a context.

Henri Verbeet hverbeet at codeweavers.com
Thu Jul 23 03:54:37 CDT 2009


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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 94000df..10b20fb 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4942,9 +4942,10 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This,  IWineD3DSurfa
         }
     }
 
+    ActivateContext(This, (IWineD3DSurface *)target, CTXUSAGE_CLEAR);
+
     target->get_drawable_size(target, &drawable_width, &drawable_height);
 
-    ActivateContext(This, (IWineD3DSurface *) target, CTXUSAGE_CLEAR);
     ENTER_GL();
 
     /* Only set the values up once, as they are not changing */
-- 
1.6.0.6




More information about the wine-patches mailing list