Commit 357ea123 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: get_drawable_size() needs a context.

parent ea2caa9b
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment