summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-07-24 07:08:00 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-07-24 07:08:46 (GMT)
commitc3ca46544548a95f99c8b1e320b65ff7ac1c42c2 (patch)
tree358d22ca05b614e9e6aeee183cf108ac8c55207f /src/opengl
parented159f974aa99e2ba3cc3112f7e3a1ced26b14b1 (diff)
downloadQt-c3ca46544548a95f99c8b1e320b65ff7ac1c42c2.zip
Qt-c3ca46544548a95f99c8b1e320b65ff7ac1c42c2.tar.gz
Qt-c3ca46544548a95f99c8b1e320b65ff7ac1c42c2.tar.bz2
Fix build on HPUX
Reviewed-By: Trustme
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_x11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp
index 43bdec7..64f5810 100644
--- a/src/opengl/qgl_x11.cpp
+++ b/src/opengl/qgl_x11.cpp
@@ -1648,11 +1648,13 @@ QGLTexture *QGLContextPrivate::bindTextureFromNativePixmap(QPixmap *pm, const qi
void QGLTexture::deleteBoundPixmap()
{
+#if !defined(GLX_VERSION_1_3) || defined(Q_OS_HPUX)
if (boundPixmap) {
glXReleaseTexImageEXT(QX11Info::display(), boundPixmap, GLX_FRONT_LEFT_EXT);
glXDestroyPixmap(QX11Info::display(), boundPixmap);
boundPixmap = 0;
}
+#endif
}