Commit 318fb703 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Add missing GL locking to test_pbo_functionality().

parent 639b2582
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment