diff options
-rw-r--r-- | src/gui/opengl/qopengltextureglyphcache.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp index 6e16b2df75..0f70a01014 100644 --- a/src/gui/opengl/qopengltextureglyphcache.cpp +++ b/src/gui/opengl/qopengltextureglyphcache.cpp @@ -240,7 +240,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) QOpenGLShaderProgram *blitProgram = 0; if (pex == 0) { if (m_blitProgram == 0) { - m_blitProgram = new QOpenGLShaderProgram(ctx); + m_blitProgram = new QOpenGLShaderProgram; const bool isCoreProfile = ctx->format().profile() == QSurfaceFormat::CoreProfile; { @@ -444,6 +444,9 @@ void QOpenGLTextureGlyphCache::clear() m_textureResource->free(); m_textureResource = 0; + delete m_blitProgram; + m_blitProgram = 0; + m_w = 0; m_h = 0; m_cx = 0; |