wined3d: Avoid clearing the current wined3d context in WineD3D_CreateFakeGLContext().
There should be no need to clear the thread's current wined3d context as long as we properly restore the corresponding GL stuff. This avoids hitting the context restore code in context_enter() when we have e.g. two d3d9 devices, one of which is inactive, because now we can see that the GL context that's active belongs to another wined3d context, and we don't need to bother saving and restoring it.
This commit is contained in:
parent
2d1a941b7d
commit
ada8ad76b9
|
@ -341,11 +341,6 @@ static BOOL WineD3D_CreateFakeGLContext(struct wined3d_fake_gl_ctx *ctx)
|
|||
}
|
||||
|
||||
/* Make it the current GL context. */
|
||||
if (!context_set_current(NULL))
|
||||
{
|
||||
ERR_(d3d_caps)("Failed to clear current D3D context.\n");
|
||||
}
|
||||
|
||||
if (!pwglMakeCurrent(ctx->dc, ctx->gl_ctx))
|
||||
{
|
||||
ERR_(d3d_caps)("Failed to make fake GL context current.\n");
|
||||
|
|
Loading…
Reference in New Issue