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 committed by Marco Martin
parent d4ba7b5e6b
commit 9865608fb3

View file

@ -640,7 +640,9 @@ void SceneOpenGL::Texture::init()
void SceneOpenGL::Texture::release()
{
if (glxpixmap != None) {
if (!options->glStrictBinding) {
glXReleaseTexImageEXT(display(), glxpixmap, GLX_FRONT_LEFT_EXT);
}
glXDestroyPixmap(display(), glxpixmap);
glxpixmap = None;
}