wined3d: Add missing GL locking to check_fbo_compat().
Henri Verbeet
hverbeet at codeweavers.com
Thu May 14 12:40:55 CDT 2009
---
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;
}
--
1.6.0.6
--------------060608050008090900040409--
More information about the wine-patches
mailing list