File tree 4 files changed +4
-16
lines changed 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ QtOpenGL
66
66
- QGLShaderProgram
67
67
* [QTBUG-12478] Don't resolve GLSL extensions if no shaders.
68
68
* [QTBUG-12591] setUniformValue(QSize) was setting (w,w) not (w,h).
69
- * [QTBUG-12862] Don't #define highp/mediump/lowp if the desktop OpenGL
70
- implementation has the GL_ARB_ES2_compatibility extension.
71
69
* [QTBUG-12554] Wrong OpenGLVersionFlags on OpenGL 4.0 systems.
72
70
73
71
QtScript
@@ -109,7 +107,7 @@ Third party components
109
107
Qt for Unix (X11 and Mac OS X)
110
108
------------------------------
111
109
112
- -
110
+ -
113
111
114
112
Qt for Linux/X11
115
113
----------------
Original file line number Diff line number Diff line change @@ -4933,8 +4933,6 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
4933
4933
glExtensions |= FragmentShader;
4934
4934
if (extensions.match (" GL_ARB_shader_objects" ))
4935
4935
glExtensions |= FragmentShader;
4936
- if (extensions.match (" GL_ARB_ES2_compatibility" ))
4937
- glExtensions |= ES2Compatibility;
4938
4936
if (extensions.match (" GL_ARB_texture_mirrored_repeat" ))
4939
4937
glExtensions |= MirroredRepeat;
4940
4938
if (extensions.match (" GL_EXT_framebuffer_object" ))
@@ -4953,7 +4951,6 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
4953
4951
glExtensions |= FramebufferObject;
4954
4952
glExtensions |= GenerateMipmap;
4955
4953
glExtensions |= FragmentShader;
4956
- glExtensions |= ES2Compatibility;
4957
4954
#endif
4958
4955
#if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_1_CL)
4959
4956
if (extensions.match (" GL_OES_framebuffer_object" ))
Original file line number Diff line number Diff line change @@ -291,8 +291,7 @@ class QGLExtensions {
291
291
DDSTextureCompression = 0x00008000 ,
292
292
ETC1TextureCompression = 0x00010000 ,
293
293
PVRTCTextureCompression = 0x00020000 ,
294
- FragmentShader = 0x00040000 ,
295
- ES2Compatibility = 0x00080000
294
+ FragmentShader = 0x00040000
296
295
};
297
296
Q_DECLARE_FLAGS (Extensions, Extension)
298
297
Original file line number Diff line number Diff line change @@ -97,10 +97,6 @@ QT_BEGIN_NAMESPACE
97
97
to just features that are present in GLSL/ES, and avoid
98
98
standard variable names that only work on the desktop.
99
99
100
- If the \c{GL_ARB_ES2_compatibility} extension is present,
101
- then the above prefix is not added because the desktop OpenGL
102
- implementation supports precision qualifiers.
103
-
104
100
\section1 Simple shader example
105
101
106
102
\snippet doc/src/snippets/code/src_opengl_qglshaderprogram.cpp 1
@@ -394,10 +390,8 @@ bool QGLShader::compileSourceCode(const char *source)
394
390
srclen.append (GLint (headerLen));
395
391
}
396
392
#ifdef QGL_DEFINE_QUALIFIERS
397
- if (!(QGLExtensions::glExtensions () & QGLExtensions::ES2Compatibility)) {
398
- src.append (qualifierDefines);
399
- srclen.append (GLint (sizeof (qualifierDefines) - 1 ));
400
- }
393
+ src.append (qualifierDefines);
394
+ srclen.append (GLint (sizeof (qualifierDefines) - 1 ));
401
395
#endif
402
396
#ifdef QGL_REDEFINE_HIGHP
403
397
if (d->shaderType == Fragment) {
You can’t perform that action at this time.
0 commit comments