Commit b56afd0c authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

wined3d: Activate context before applying fbo state.

parent 6b177c44
......@@ -4415,16 +4415,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
/* This is for offscreen rendering as well as for multithreading, thus activate the set render target
* and not the last active one.
*/
ActivateContext(This, This->render_targets[0], CTXUSAGE_CLEAR);
ENTER_GL();
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO) {
ENTER_GL();
apply_fbo_state(iface);
LEAVE_GL();
}
ActivateContext(This, This->render_targets[0], CTXUSAGE_CLEAR);
ENTER_GL();
if (Count > 0 && pRects) {
curRect = pRects;
} else {
......
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