From 3022a4a73c2d0df7457e44361c3386d1d1bfed2b Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 14 May 2009 19:40:55 +0200 Subject: [PATCH] wined3d: Add missing GL locking to check_fbo_compat(). --- dlls/wined3d/utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index d6973725748..c4de00116e7 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -449,6 +449,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form GLuint tex, fb; GLenum status; + ENTER_GL(); + while(glGetError()); glGenTextures(1, &tex); glBindTexture(GL_TEXTURE_2D, tex); @@ -464,6 +466,8 @@ static BOOL check_fbo_compat(const WineD3D_GL_Info *gl_info, GLint internal_form checkGLcall("Framebuffer format check"); + LEAVE_GL(); + return status == GL_FRAMEBUFFER_COMPLETE_EXT; }