diff options
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index 22fc3f4ad0..6dd939c2de 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -346,7 +346,7 @@ public: private: static void freeTextureFunc(QOpenGLFunctions *, GLuint id) { - glDeleteTextures(1, &id); + QOpenGLContext::currentContext()->functions()->glDeleteTextures(1, &id); } }; |