--- qt-everywhere-opensource-src-4.8.3/src/opengl/qglpixelbuffer_win.cpp.org	Thu Sep 20 12:09:58 2012
+++ qt-everywhere-opensource-src-4.8.3/src/opengl/qglpixelbuffer_win.cpp	Thu Sep 20 12:11:04 2012
@@ -303,12 +303,13 @@
     // a 2D RGBA texture target.
     int pb_attribs[] = {WGL_TEXTURE_FORMAT_ARB, WGL_TEXTURE_RGBA_ARB,
                         WGL_TEXTURE_TARGET_ARB, WGL_TEXTURE_2D_ARB, 0};
+    int pb_attribs_null[] = {0};
 
     pbuf = wglCreatePbufferARB(dc, pixel_format, size.width(), size.height(),
-                               has_render_texture ? pb_attribs : 0);
+                               has_render_texture ? pb_attribs : pb_attribs_null);
     if (!pbuf) {
         // try again without the render_texture extension
-        pbuf = wglCreatePbufferARB(dc, pixel_format, size.width(), size.height(), 0);
+        pbuf = wglCreatePbufferARB(dc, pixel_format, size.width(), size.height(), pb_attribs_null);
         has_render_texture = false;
         if (!pbuf) {
             qWarning("QGLPixelBuffer: Unable to create pbuffer [w=%d, h=%d] - giving up.", size.width(), size.height());
