Add default value to inverted y on glx
authorJørgen Lind <jorgen.lind@nokia.com>
Sun, 8 May 2011 15:43:23 +0000 (17:43 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Sun, 8 May 2011 15:43:23 +0000 (17:43 +0200)
This because glx can just ignore the query, and just pass the value
back.

src/qt-compositor/hardware_integration/xcomposite_glx/xcompositeglxintegration.cpp

index b5f4928..9065343 100644 (file)
@@ -88,7 +88,7 @@ GLuint XCompositeGLXIntegration::createTextureFromBuffer(wl_buffer *buffer)
     attribList.append(0);
     GLXPixmap glxPixmap = glXCreatePixmap(mDisplay,*configs,pixmap,attribList.constData());
 
-    uint inverted;
+    uint inverted = 0;
     glXQueryDrawable(mDisplay, glxPixmap, GLX_Y_INVERTED_EXT,&inverted);
     compositorBuffer->setInvertedY(!inverted);