diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-08-13 00:50:31 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-08-13 00:50:31 (GMT) |
commit | 6155050f68cc86c445552da61a5f240c16f5e2cd (patch) | |
tree | eccb560efebc61a949f13e4a3e124460c001eb8e /src/opengl/qgl_p.h | |
parent | b0d2a439314bc86e6e15fe033c1edaee471b4b95 (diff) | |
download | Qt-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.h | 3 |
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) |