Henri Verbeet : wined3d: Add missing GL locking to check_fbo_compat().
Module: wine Branch: master Commit: 3022a4a73c2d0df7457e44361c3386d1d1bfed2b URL: http://source.winehq.org/git/wine.git/?a=commit;h=3022a4a73c2d0df7457e44361c... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu May 14 19:40:55 2009 +0200 wined3d: Add missing GL locking to check_fbo_compat(). --- dlls/wined3d/utils.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index d697372..c4de001 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; }
participants (1)
-
Alexandre Julliard