wined3d: get_drawable_size() needs a context.

This commit is contained in:
Henri Verbeet 2009-07-23 10:54:37 +02:00 committed by Alexandre Julliard
parent ea2caa9ba1
commit 357ea123d9
1 changed files with 2 additions and 1 deletions

View File

@ -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); target->get_drawable_size(target, &drawable_width, &drawable_height);
ActivateContext(This, (IWineD3DSurface *) target, CTXUSAGE_CLEAR);
ENTER_GL(); ENTER_GL();
/* Only set the values up once, as they are not changing */ /* Only set the values up once, as they are not changing */