wined3d: Add missing GL locking to check_fbo_compat().

This commit is contained in:
Henri Verbeet 2009-05-14 19:40:55 +02:00 committed by Alexandre Julliard
parent 177d883d95
commit 3022a4a73c
1 changed files with 4 additions and 0 deletions

View File

@ -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
checkGLcall("Framebuffer format check"); checkGLcall("Framebuffer format check");
LEAVE_GL();
return status == GL_FRAMEBUFFER_COMPLETE_EXT; return status == GL_FRAMEBUFFER_COMPLETE_EXT;
} }