Fix crash: make sure functions pointer is initialized.
Change-Id: I42fd3933f33370612290e8ba252349acfae72381 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
0afe3c7ee3
commit
a30676f201
@ -2441,7 +2441,7 @@ QGLTexture* QGLContextPrivate::bindTexture(const QImage &image, GLenum target, G
|
|||||||
glTexImage2D(target, 0, internalFormat, img.width(), img.height(), 0, externalFormat,
|
glTexImage2D(target, 0, internalFormat, img.width(), img.height(), 0, externalFormat,
|
||||||
pixel_type, constRef.bits());
|
pixel_type, constRef.bits());
|
||||||
if (genMipmap && ctx->isES())
|
if (genMipmap && ctx->isES())
|
||||||
functions->glGenerateMipmap(target);
|
q->functions()->glGenerateMipmap(target);
|
||||||
#ifndef QT_NO_DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
GLenum error = glGetError();
|
GLenum error = glGetError();
|
||||||
if (error != GL_NO_ERROR) {
|
if (error != GL_NO_ERROR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user