Browse Source

Shaders: gl_VertexID is supported in GLES 3.0.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
5dd0c40421
  1. 2
      src/Magnum/Shaders/MeshVisualizer.cpp

2
src/Magnum/Shaders/MeshVisualizer.cpp

@ -105,12 +105,14 @@ MeshVisualizer::MeshVisualizer(const Flags flags): flags(flags), transformationP
{ {
bindAttributeLocation(Position::Location, "position"); bindAttributeLocation(Position::Location, "position");
#if !defined(MAGNUM_TARGET_GLES) || defined(MAGNUM_TARGET_GLES2)
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
if(!Context::current()->isVersionSupported(Version::GL310)) if(!Context::current()->isVersionSupported(Version::GL310))
#endif #endif
{ {
bindAttributeLocation(VertexIndex::Location, "vertexIndex"); bindAttributeLocation(VertexIndex::Location, "vertexIndex");
} }
#endif
} }
CORRADE_INTERNAL_ASSERT_OUTPUT(link()); CORRADE_INTERNAL_ASSERT_OUTPUT(link());

Loading…
Cancel
Save