diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index f5d4d3e31dc..8e3c8073fe3 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -3907,6 +3907,8 @@ static void test_pbo_functionality(WineD3D_GL_Info *gl_info) { return; } + ENTER_GL(); + while(glGetError()); glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); @@ -3934,6 +3936,8 @@ static void test_pbo_functionality(WineD3D_GL_Info *gl_info) { GL_EXTCALL(glDeleteBuffersARB(1, &pbo)); checkGLcall("PBO test cleanup\n"); + LEAVE_GL(); + if(memcmp(check, pattern, sizeof(check)) != 0) { WARN_(d3d_caps)("PBO test failed, read back data doesn't match original\n"); WARN_(d3d_caps)("Disabling PBOs. This may result in slower performance\n");