Browse Source

Shaders: @mosra is evil.

pull/218/head
Squareys 9 years ago committed by Vladimír Vondruš
parent
commit
db56be54a0
  1. 12
      src/Magnum/Shaders/DistanceFieldVector.cpp

12
src/Magnum/Shaders/DistanceFieldVector.cpp

@ -55,16 +55,16 @@ template<UnsignedInt dimensions> DistanceFieldVector<dimensions>::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<dimensions>()));
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<Extensions::GL::ARB::explicit_attrib_location>(version))

Loading…
Cancel
Save