diff options
author | BogDan Vatra <bogdan@kde.org> | 2014-03-21 10:47:29 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-22 10:55:56 +0100 |
commit | a30676f20171f2bf7a8074b21be2688fcc239b14 (patch) | |
tree | 5c1a213c2ce1c9842ab6b53585b620d61a92a2d6 /src/opengl | |
parent | 0afe3c7ee3fcaeac68c232a3f2469b1e4c35f6a5 (diff) |
Fix crash: make sure functions pointer is initialized.
Change-Id: I42fd3933f33370612290e8ba252349acfae72381
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index d676abee47..de1de476b8 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -2441,7 +2441,7 @@ QGLTexture* QGLContextPrivate::bindTexture(const QImage &image, GLenum target, G glTexImage2D(target, 0, internalFormat, img.width(), img.height(), 0, externalFormat, pixel_type, constRef.bits()); if (genMipmap && ctx->isES()) - functions->glGenerateMipmap(target); + q->functions()->glGenerateMipmap(target); #ifndef QT_NO_DEBUG GLenum error = glGetError(); if (error != GL_NO_ERROR) { |