diff --git a/src/Magnum/Shaders/DistanceFieldVector.cpp b/src/Magnum/Shaders/DistanceFieldVector.cpp index 0acd0f9cc..2136e01f9 100644 --- a/src/Magnum/Shaders/DistanceFieldVector.cpp +++ b/src/Magnum/Shaders/DistanceFieldVector.cpp @@ -55,16 +55,16 @@ template DistanceFieldVector::DistanceFieldV const Version version = Context::current().supportedVersion({Version::GLES300, Version::GLES200}); #endif - Shader frag = Implementation::createCompatibilityShader(rs, version, Shader::Type::Vertex); - Shader vert = Implementation::createCompatibilityShader(rs, version, Shader::Type::Fragment); + Shader vert = Implementation::createCompatibilityShader(rs, version, Shader::Type::Vertex); + Shader frag = Implementation::createCompatibilityShader(rs, version, Shader::Type::Fragment); - frag.addSource(rs.get("generic.glsl")) + vert.addSource(rs.get("generic.glsl")) .addSource(rs.get(vertexShaderName())); - vert.addSource(rs.get("DistanceFieldVector.frag")); + frag.addSource(rs.get("DistanceFieldVector.frag")); - CORRADE_INTERNAL_ASSERT_OUTPUT(Shader::compile({frag, vert})); + CORRADE_INTERNAL_ASSERT_OUTPUT(Shader::compile({vert, frag})); - AbstractShaderProgram::attachShaders({frag, vert}); + AbstractShaderProgram::attachShaders({vert, frag}); #ifndef MAGNUM_TARGET_GLES if(!Context::current().isExtensionSupported(version))