Fix a merge regression in Texture::release.

Seems to be a lost change caused by rebasing moved code.
icc-effect-5.14.5
Martin Gräßlin 2011-02-05 11:55:10 +01:00
parent ad0c869c7f
commit 42f4e65543
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}