wined3d: Make sure wglFlush is not between ENTER_GL/LEAVE_GL.

This commit is contained in:
Roderick Colenbrander 2010-05-14 12:56:43 +02:00 committed by Alexandre Julliard
parent 162d95a3ce
commit e91f4ae776
1 changed files with 3 additions and 0 deletions

View File

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