opengl32/test: do not pass NULL attrib list to wglCreatePBufferARB
Jérôme Gardou
jerome.gardou at reactos.org
Tue Aug 21 10:16:38 CDT 2012
Some drivers (gallium/VMWare) don't check for NULL input.
---
dlls/opengl32/tests/opengl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 8e3d729..4f799d2 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -197,7 +197,8 @@ static void test_pbuffers(HDC hdc)
if(iPixelFormat != 0)
{
HDC pbuffer_hdc;
- HPBUFFERARB pbuffer = pwglCreatePbufferARB(hdc, iPixelFormat,
640 /* width */, 480 /* height */, NULL);
+ int attrib = 0;
+ HPBUFFERARB pbuffer = pwglCreatePbufferARB(hdc, iPixelFormat,
640 /* width */, 480 /* height */, &attrib);
if(!pbuffer)
skip("Pbuffer creation failed!\n");
-- 1.7.10.4
More information about the wine-patches
mailing list