mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Fix a deadlock that may occur during initialization.
This commit is contained in:
parent
808c5dbece
commit
422d71f630
1 changed files with 4 additions and 0 deletions
|
@ -770,6 +770,9 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
LEAVE_GL();
|
||||
|
||||
/* Now work out what GL support this card really has */
|
||||
#define USE_GL_FUNC(type, pfn, ext, replace) { \
|
||||
DWORD ver = ver_for_ext(ext); \
|
||||
|
@ -784,6 +787,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
|
|||
WGL_EXT_FUNCS_GEN;
|
||||
#undef USE_GL_FUNC
|
||||
|
||||
ENTER_GL();
|
||||
/* Now mark all the extensions supported which are included in the opengl core version. Do this *after*
|
||||
* loading the functions, otherwise the code above will load the extension entry points instead of the
|
||||
* core functions, which may not work
|
||||
|
|
Loading…
Reference in a new issue