wined3d: Make sure wglFlush is not between ENTER_GL/LEAVE_GL.
authorRoderick Colenbrander <thunderbird2k@gmail.com>
Fri, 14 May 2010 10:56:43 +0000 (12:56 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 14 May 2010 16:03:02 +0000 (18:03 +0200)
dlls/wined3d/directx.c

index 4df04fa2f72e2e64973e80200eed46107fd3a47c..eb5a16d490bd4776e6a71a057f414215e6d6b4b8 100644 (file)
@@ -529,9 +529,12 @@ static void test_pbo_functionality(struct wined3d_gl_info *gl_info)
     checkGLcall("Loading the PBO test texture");
 
     GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, 0));
+    LEAVE_GL();
+
     wglFinish(); /* just to be sure */
 
     memset(check, 0, sizeof(check));
+    ENTER_GL();
     glGetTexImage(GL_TEXTURE_2D, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, check);
     checkGLcall("Reading back the PBO test texture");