summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-08-13 00:50:31 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-08-13 00:50:31 (GMT)
commit6155050f68cc86c445552da61a5f240c16f5e2cd (patch)
treeeccb560efebc61a949f13e4a3e124460c001eb8e /src/opengl/qgl_p.h
parentb0d2a439314bc86e6e15fe033c1edaee471b4b95 (diff)
downloadQt-6155050f68cc86c445552da61a5f240c16f5e2cd.zip
Qt-6155050f68cc86c445552da61a5f240c16f5e2cd.tar.gz
Qt-6155050f68cc86c445552da61a5f240c16f5e2cd.tar.bz2
Don't define highp/mediump/lowp if desktop GL has them
OpenGL 4.0 systems now have compatibility with ES2, including support for the precision qualifiers. If the GL_ARB_ES2_compatibility extension is present, then we don't define highp/mediump/lowp to the empty string. Task-number: QTBUG-12862 Reviewed-by: Sarah Smith
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 4facb65..1603ca1 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -291,7 +291,8 @@ public:
DDSTextureCompression = 0x00008000,
ETC1TextureCompression = 0x00010000,
PVRTCTextureCompression = 0x00020000,
- FragmentShader = 0x00040000
+ FragmentShader = 0x00040000,
+ ES2Compatibility = 0x00080000
};
Q_DECLARE_FLAGS(Extensions, Extension)