summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-08-17 08:29:03 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-08-17 08:40:24 (GMT)
commita76b8bf67696ae69888cc6237417e7c8f07f8da6 (patch)
tree082ff846348c222ae1c87b18c882fc96adf4adf1 /src/opengl/qgl_p.h
parent69e8769e2a3f44700c24437dc851ea817c16318f (diff)
downloadQt-a76b8bf67696ae69888cc6237417e7c8f07f8da6.zip
Qt-a76b8bf67696ae69888cc6237417e7c8f07f8da6.tar.gz
Qt-a76b8bf67696ae69888cc6237417e7c8f07f8da6.tar.bz2
Prevented Xorg crash in qtdemo when running corkboards example.
The crash happens in the Nvidia driver in glXReleaseTexImageEXT when scrolling the corkboard using the mouse. To work around it we detect the Nvidia driver versions where this is known to be a problem and skip using the texture from pixmap extension in those cases. Task-number: QTBUG-12914 Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 32feacd..ca0d3fa 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -393,6 +393,9 @@ public:
uint workaround_brokenFBOReadBack : 1;
uint workaroundsCached : 1;
+ uint workaround_brokenTextureFromPixmap : 1;
+ uint workaround_brokenTextureFromPixmap_init : 1;
+
QPaintDevice *paintDevice;
QColor transpColor;
QGLContext *q_ptr;