wined3d: Add missing GL locking to test_pbo_functionality().
This commit is contained in:
parent
639b258200
commit
318fb7036b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue