glx1.3, section 3.4.2: "GLXPixmaps created by calls other

than glXCreateGLXPixmap should not be passed to glXDestroyGLXPixmap."


svn path=/trunk/KDE/kdebase/workspace/; revision=983660
This commit is contained in:
Luboš Luňák 2009-06-18 18:54:15 +00:00
parent 50323a00c4
commit 60f8d8a84f

View file

@ -1004,7 +1004,7 @@ void SceneOpenGL::Texture::release()
{
if( !options->glStrictBinding )
glXReleaseTexImageEXT( display(), bound_glxpixmap, GLX_FRONT_LEFT_EXT );
glXDestroyGLXPixmap( display(), bound_glxpixmap );
glXDestroyPixmap( display(), bound_glxpixmap );
bound_glxpixmap = None;
}
}