Henri Verbeet : wined3d: get_drawable_size() needs a context.
Alexandre Julliard
julliard at winehq.org
Thu Jul 23 09:59:50 CDT 2009
Module: wine
Branch: master
Commit: 357ea123d909639991d2007e9e18a1f115a8b29e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=357ea123d909639991d2007e9e18a1f115a8b29e
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jul 23 10:54:37 2009 +0200
wined3d: get_drawable_size() needs a context.
---
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 */
More information about the wine-cvs
mailing list