diff --git a/src/Shaders/MeshVisualizer.cpp b/src/Shaders/MeshVisualizer.cpp index f2e3f5a84..5b656ffdb 100644 --- a/src/Shaders/MeshVisualizer.cpp +++ b/src/Shaders/MeshVisualizer.cpp @@ -83,12 +83,13 @@ MeshVisualizer::MeshVisualizer(const Flags flags): flags(flags), transformationP #endif { bindAttributeLocation(Position::Location, "position"); + #ifndef MAGNUM_TARGET_GLES - if(v < Version::GL310) - #else - if(v < Version::GLES300) + if(!Context::current()->isVersionSupported(Version::GL310)) #endif + { bindAttributeLocation(VertexIndex::Location, "vertexIndex"); + } } CORRADE_INTERNAL_ASSERT_OUTPUT(link()); diff --git a/src/Shapes/shapeImplementation.h b/src/Shapes/shapeImplementation.h index 05b5dd86f..6662fa817 100644 --- a/src/Shapes/shapeImplementation.h +++ b/src/Shapes/shapeImplementation.h @@ -108,7 +108,7 @@ template struct TypeOf> { } }; template<> struct TypeOf { - constexpr static typename ShapeDimensionTraits<3>::Type type() { + constexpr static ShapeDimensionTraits<3>::Type type() { return ShapeDimensionTraits<3>::Type::Plane; } };