diff --git a/scene_opengl_glx.cpp b/scene_opengl_glx.cpp index 80759e9b30..fc7a52b1e7 100644 --- a/scene_opengl_glx.cpp +++ b/scene_opengl_glx.cpp @@ -640,7 +640,9 @@ void SceneOpenGL::Texture::init() void SceneOpenGL::Texture::release() { if (glxpixmap != None) { - glXReleaseTexImageEXT(display(), glxpixmap, GLX_FRONT_LEFT_EXT); + if (!options->glStrictBinding) { + glXReleaseTexImageEXT(display(), glxpixmap, GLX_FRONT_LEFT_EXT); + } glXDestroyPixmap(display(), glxpixmap); glxpixmap = None; }