wined3d: get_drawable_size() needs a context.
This commit is contained in:
parent
ea2caa9ba1
commit
357ea123d9
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue