Fix a merge regression in Texture::release.
Seems to be a lost change caused by rebasing moved code.
This commit is contained in:
parent
ad0c869c7f
commit
42f4e65543
1 changed files with 3 additions and 1 deletions
|
@ -640,7 +640,9 @@ void SceneOpenGL::Texture::init()
|
||||||
void SceneOpenGL::Texture::release()
|
void SceneOpenGL::Texture::release()
|
||||||
{
|
{
|
||||||
if (glxpixmap != None) {
|
if (glxpixmap != None) {
|
||||||
glXReleaseTexImageEXT(display(), glxpixmap, GLX_FRONT_LEFT_EXT);
|
if (!options->glStrictBinding) {
|
||||||
|
glXReleaseTexImageEXT(display(), glxpixmap, GLX_FRONT_LEFT_EXT);
|
||||||
|
}
|
||||||
glXDestroyPixmap(display(), glxpixmap);
|
glXDestroyPixmap(display(), glxpixmap);
|
||||||
glxpixmap = None;
|
glxpixmap = None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue