Commit 3022a4a7 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Add missing GL locking to check_fbo_compat().

parent 177d883d
...@@ -449,6 +449,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form ...@@ -449,6 +449,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form
GLuint tex, fb; GLuint tex, fb;
GLenum status; GLenum status;
ENTER_GL();
while(glGetError()); while(glGetError());
glGenTextures(1, &tex); glGenTextures(1, &tex);
glBindTexture(GL_TEXTURE_2D, tex); glBindTexture(GL_TEXTURE_2D, tex);
...@@ -464,6 +466,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form ...@@ -464,6 +466,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form
checkGLcall("Framebuffer format check"); checkGLcall("Framebuffer format check");
LEAVE_GL();
return status == GL_FRAMEBUFFER_COMPLETE_EXT; return status == GL_FRAMEBUFFER_COMPLETE_EXT;
} }
......
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