opengl/glshadermanager: check opengl instead of glsl version
Whether or not mix with bvec is supported depends on the OpenGL version and not on the glsl version
This commit is contained in:
parent
5734342f9f
commit
4be57d78e9
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ QByteArray ShaderManager::generateFragmentSource(ShaderTraits traits) const
|
|||
textureLookup = glsl_es_300 ? QByteArrayLiteral("texture") : QByteArrayLiteral("texture2D");
|
||||
output = glsl_es_300 ? QByteArrayLiteral("fragColor") : QByteArrayLiteral("gl_FragColor");
|
||||
}
|
||||
if (!gl->isGLES() || gl->glslVersion() >= Version(3, 0)) {
|
||||
if (!gl->isGLES() || gl->glVersion() >= Version(3, 0)) {
|
||||
stream << "\n";
|
||||
stream << "vec3 doMix(vec3 left, vec3 right, bvec3 rightFactor) {\n";
|
||||
stream << " return mix(left, right, rightFactor);\n";
|
||||
|
|
Loading…
Reference in a new issue