Roderick Colenbrander : wined3d: Make sure wglFlush is not between ENTER_GL /LEAVE_GL.
Alexandre Julliard
julliard at winehq.org
Fri May 14 11:17:29 CDT 2010
Module: wine
Branch: master
Commit: e91f4ae7761034a67cf909ce5cf569b9294d0031
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e91f4ae7761034a67cf909ce5cf569b9294d0031
Author: Roderick Colenbrander <thunderbird2k at gmail.com>
Date: Fri May 14 12:56:43 2010 +0200
wined3d: Make sure wglFlush is not between ENTER_GL/LEAVE_GL.
---
dlls/wined3d/directx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 4df04fa..eb5a16d 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -529,9 +529,12 @@ static void test_pbo_functionality(struct wined3d_gl_info *gl_info)
checkGLcall("Loading the PBO test texture");
GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, 0));
+ LEAVE_GL();
+
wglFinish(); /* just to be sure */
memset(check, 0, sizeof(check));
+ ENTER_GL();
glGetTexImage(GL_TEXTURE_2D, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, check);
checkGLcall("Reading back the PBO test texture");
More information about the wine-cvs
mailing list