summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglextensions_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-05-14 08:51:46 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-05-14 08:51:46 (GMT)
commit521c5cc3910bffe566e0fb653041f159ecb5b6d5 (patch)
tree70b703fa82b7e5f2e07105fb37ff5dc9353e6598 /src/opengl/qglextensions_p.h
parentf15352c51625688ec445c73125a2e25327377d49 (diff)
downloadQt-521c5cc3910bffe566e0fb653041f159ecb5b6d5.zip
Qt-521c5cc3910bffe566e0fb653041f159ecb5b6d5.tar.gz
Qt-521c5cc3910bffe566e0fb653041f159ecb5b6d5.tar.bz2
Make QtOpenGL compile on OpenGL ES 1.1 again
Diffstat (limited to 'src/opengl/qglextensions_p.h')
-rw-r--r--src/opengl/qglextensions_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opengl/qglextensions_p.h b/src/opengl/qglextensions_p.h
index 46047ef..d6edfb6 100644
--- a/src/opengl/qglextensions_p.h
+++ b/src/opengl/qglextensions_p.h
@@ -705,7 +705,10 @@ struct QGLExtensionFuncs
#if !defined(QT_OPENGL_ES_2)
#define glStencilOpSeparate QGLContextPrivate::qt_get_extension_funcs(ctx).qt_glStencilOpSeparate
-#define glClearDepthf(x) glClearDepth(GLdouble(x))
+#endif
+
+#if defined(QT_OPENGL_ES_2)
+#define glClearDepth glClearDepthf
#endif
extern bool qt_resolve_framebufferobject_extensions(QGLContext *ctx);