wined3d: Add missing GL locking to test_pbo_functionality().

This commit is contained in:
Henri Verbeet 2009-05-13 18:22:55 +02:00 committed by Alexandre Julliard
parent 639b258200
commit 318fb7036b
1 changed files with 4 additions and 0 deletions

View File

@ -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");