Fix a merge regression in Texture::release.

Seems to be a lost change caused by rebasing moved code.
This commit is contained in:
Martin Gräßlin 2011-02-05 11:55:10 +01:00
parent ad0c869c7f
commit 42f4e65543

View file

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