wined3d: Don't make wgl calls from under the GL lock.

This commit is contained in:
Henri Verbeet 2009-08-13 10:03:04 +02:00 committed by Alexandre Julliard
parent 326f9b3f3f
commit 42c2d06bc0
1 changed files with 2 additions and 1 deletions

View File

@ -1545,6 +1545,8 @@ static BOOL IWineD3DImpl_FillGLCaps(struct wined3d_gl_info *gl_info)
}
checkGLcall("extension detection");
LEAVE_GL();
/* In some cases the number of texture stages can be larger than the number
* of samplers. The GF4 for example can use only 2 samplers (no fragment
* shaders), but 8 texture stages (register combiners). */
@ -2052,7 +2054,6 @@ static BOOL IWineD3DImpl_FillGLCaps(struct wined3d_gl_info *gl_info)
}
}
}
LEAVE_GL();
fixup_extensions(gl_info, gl_renderer);
add_gl_compat_wrappers(gl_info);