Browse Source

Fix Mesh test build on ES.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
dc2433c35f
  1. 5
      src/Magnum/Test/MeshGLTest.cpp

5
src/Magnum/Test/MeshGLTest.cpp

@ -294,12 +294,11 @@ void MeshGLTest::constructMove() {
void MeshGLTest::wrap() {
#ifndef MAGNUM_TARGET_GLES
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::vertex_array_object>())
CORRADE_SKIP(Extensions::GL::ARB::vertex_array_object::string() + std::string{" is not supported."});
#elif defined(MAGNUM_TARGET_GLES2)
if(!Context::current()->isExtensionSupported<Extensions::GL::OES::vertex_array_object>())
CORRADE_SKIP(Extensions::GL::OES::vertex_array_object::string() + std::string{" is not supported."});
#endif
{
CORRADE_SKIP(Extensions::GL::ARB::vertex_array_object::string() + std::string{" is not supported."});
}
GLuint id;
glGenVertexArrays(1, &id);

Loading…
Cancel
Save