Skip to content

Commit

Permalink
Merge branch 4.7 into qt-master-from-4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Qt Continuous Integration System committed Oct 12, 2010
2 parents 9c2522f + dfb0f86 commit 7bf8fb9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
4 changes: 1 addition & 3 deletions dist/changes-4.6.4
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ QtOpenGL
- QGLShaderProgram
* [QTBUG-12478] Don't resolve GLSL extensions if no shaders.
* [QTBUG-12591] setUniformValue(QSize) was setting (w,w) not (w,h).
* [QTBUG-12862] Don't #define highp/mediump/lowp if the desktop OpenGL
implementation has the GL_ARB_ES2_compatibility extension.
* [QTBUG-12554] Wrong OpenGLVersionFlags on OpenGL 4.0 systems.

QtScript
Expand Down Expand Up @@ -109,7 +107,7 @@ Third party components
Qt for Unix (X11 and Mac OS X)
------------------------------

-
-

Qt for Linux/X11
----------------
Expand Down
3 changes: 0 additions & 3 deletions src/opengl/qgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5325,8 +5325,6 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
glExtensions |= FragmentShader;
if (extensions.match("GL_ARB_shader_objects"))
glExtensions |= FragmentShader;
if (extensions.match("GL_ARB_ES2_compatibility"))
glExtensions |= ES2Compatibility;
if (extensions.match("GL_ARB_texture_mirrored_repeat"))
glExtensions |= MirroredRepeat;
if (extensions.match("GL_EXT_framebuffer_object"))
Expand All @@ -5347,7 +5345,6 @@ QGLExtensions::Extensions QGLExtensions::currentContextExtensions()
glExtensions |= FramebufferObject;
glExtensions |= GenerateMipmap;
glExtensions |= FragmentShader;
glExtensions |= ES2Compatibility;
#endif
#if defined(QT_OPENGL_ES_1)
if (extensions.match("GL_OES_framebuffer_object"))
Expand Down
3 changes: 1 addition & 2 deletions src/opengl/qgl_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ class QGLExtensions {
DDSTextureCompression = 0x00008000,
ETC1TextureCompression = 0x00010000,
PVRTCTextureCompression = 0x00020000,
FragmentShader = 0x00040000,
ES2Compatibility = 0x00080000
FragmentShader = 0x00040000
};
Q_DECLARE_FLAGS(Extensions, Extension)

Expand Down
10 changes: 2 additions & 8 deletions src/opengl/qglshaderprogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ QT_BEGIN_NAMESPACE
to just features that are present in GLSL/ES, and avoid
standard variable names that only work on the desktop.
If the \c{GL_ARB_ES2_compatibility} extension is present,
then the above prefix is not added because the desktop OpenGL
implementation supports precision qualifiers.
\section1 Simple shader example
\snippet doc/src/snippets/code/src_opengl_qglshaderprogram.cpp 1
Expand Down Expand Up @@ -398,10 +394,8 @@ bool QGLShader::compileSourceCode(const char *source)
srclen.append(GLint(headerLen));
}
#ifdef QGL_DEFINE_QUALIFIERS
if (!(QGLExtensions::glExtensions() & QGLExtensions::ES2Compatibility)) {
src.append(qualifierDefines);
srclen.append(GLint(sizeof(qualifierDefines) - 1));
}
src.append(qualifierDefines);
srclen.append(GLint(sizeof(qualifierDefines) - 1));
#endif
#ifdef QGL_REDEFINE_HIGHP
if (d->shaderType == Fragment) {
Expand Down

0 comments on commit 7bf8fb9

Please sign in to comment.