diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-10-05 08:58:50 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-10-05 09:02:40 (GMT) |
commit | 17e1f24b84ea4cbfab53cbd8d66963f744eb1d66 (patch) | |
tree | d6829997b6e5c0e6a8c7b430af48da2e758568de /src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h | |
parent | 892961bdb06199606ef92b3ab364175a1709c378 (diff) | |
download | Qt-17e1f24b84ea4cbfab53cbd8d66963f744eb1d66.zip Qt-17e1f24b84ea4cbfab53cbd8d66963f744eb1d66.tar.gz Qt-17e1f24b84ea4cbfab53cbd8d66963f744eb1d66.tar.bz2 |
Work around OpenGL driver reading arrays asyncronously
Some drivers, e.g. the Nvidia driver on Windows, will sometimes read
the coordinate arrays asyncronously, which causes a crash if they are
allocated on the stack.
Reviewed-by: Kim
Diffstat (limited to 'src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h')
-rw-r--r-- | src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h b/src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h index 7e2c625..f75cf68 100644 --- a/src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h +++ b/src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h @@ -147,6 +147,9 @@ private: QGL2PaintEngineExPrivate *pex; QGLShaderProgram *m_blitProgram; FilterMode m_filterMode; + + GLfloat m_vertexCoordinateArray[8]; + GLfloat m_textureCoordinateArray[8]; }; QT_END_NAMESPACE |