diff options
-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 |