wined3d: Add missing GL locking to test_pbo_functionality().

Henri Verrbeet hverbeet at codeweavers.com
Wed May 13 11:22:55 CDT 2009


---
 dlls/wined3d/directx.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index f5d4d3e..8e3c807 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");
-- 
1.6.0.6



--------------000504020602000300040403--



More information about the wine-patches mailing list