diff options
author | Sergio Martins <iamsergio@gmail.com> | 2012-03-10 18:28:40 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-10 22:16:05 +0100 |
commit | d8e6350c16a1cf696cf65d9cc898c7bd34419ec7 (patch) | |
tree | dfaed36048a1cf157f4fcdf325a6a7c49d353955 /src/gui/opengl | |
parent | 11eed81ae9913b4aa2d7e4060c3421158d79881b (diff) |
Remove unneeded check.
It would have already crashed on
QOpenGLSharedResource(ctx->shareGroup()).
Change-Id: Ib68759457a0fa7e4417dcd30cc40fbabf3df232c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/opengl')
-rw-r--r-- | src/gui/opengl/qopengltextureglyphcache_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltextureglyphcache_p.h b/src/gui/opengl/qopengltextureglyphcache_p.h index 1b4f4f7429..4b6101e7c9 100644 --- a/src/gui/opengl/qopengltextureglyphcache_p.h +++ b/src/gui/opengl/qopengltextureglyphcache_p.h @@ -72,7 +72,7 @@ public: , m_width(0) , m_height(0) { - if (ctx && !ctx->d_func()->workaround_brokenFBOReadBack) + if (!ctx->d_func()->workaround_brokenFBOReadBack) QOpenGLFunctions(ctx).glGenFramebuffers(1, &m_fbo); #ifdef QT_GL_TEXTURE_GLYPH_CACHE_DEBUG |