summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-07-08 15:31:16 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-07-08 15:35:47 (GMT)
commite02d97c50cee8bdc662bb1183ed01aa0dac53f01 (patch)
tree8a03912f4e3db9cbd512d77c1180bba9ebc0e996 /src/opengl/qgl_p.h
parent2d691f6e743cad6efb676854ac65218a1cbe5e5f (diff)
downloadQt-e02d97c50cee8bdc662bb1183ed01aa0dac53f01.zip
Qt-e02d97c50cee8bdc662bb1183ed01aa0dac53f01.tar.gz
Qt-e02d97c50cee8bdc662bb1183ed01aa0dac53f01.tar.bz2
Track the GL DCs we use across different threads under Windows.
A DC returned by GetDC() is only valid within the context of the calling thread, so we need to track which tread a DC belongs to. Reviewed-by: Kim
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index eca4a29..dfbc926 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -347,6 +347,7 @@ public:
QGLCmap* cmap;
HBITMAP hbitmap;
HDC hbitmap_hdc;
+ Qt::HANDLE threadId;
#endif
#ifndef QT_NO_EGL
uint ownsEglContext : 1;