Browse Source

Fix Mesh test build on ES2.

Yeah, thanks, Jenkins, for being so thorough, but... eh.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
00cb2bc724
  1. 8
      src/Magnum/Test/MeshGLTest.cpp

8
src/Magnum/Test/MeshGLTest.cpp

@ -301,7 +301,11 @@ void MeshGLTest::wrap() {
#endif
GLuint id;
#ifndef MAGNUM_TARGET_GLES2
glGenVertexArrays(1, &id);
#else
glGenVertexArraysOES(1, &id);
#endif
/* Releasing won't delete anything */
{
@ -311,7 +315,11 @@ void MeshGLTest::wrap() {
/* ...so we can wrap it again */
Mesh::wrap(id);
#ifndef MAGNUM_TARGET_GLES2
glDeleteVertexArrays(1, &id);
#else
glDeleteVertexArraysOES(1, &id);
#endif
}
void MeshGLTest::label() {

Loading…
Cancel
Save