Browse Source

Assert on each OES_vertex_array_object function occurence.

Until we have extension wrangler set up for ES2.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
dd2cac1e8a
  1. 6
      src/Magnum/Mesh.cpp

6
src/Magnum/Mesh.cpp

@ -251,6 +251,9 @@ void Mesh::createImplementationVAO() {
/** @todo Get some extension wrangler instead to avoid linker errors to glGenVertexArrays() on ES2 */
#ifndef MAGNUM_TARGET_GLES2
glGenVertexArrays(1, &_id);
#else
//glGenVertexArraysOES(1, &_id);
CORRADE_INTERNAL_ASSERT(false);
#endif
}
@ -260,6 +263,9 @@ void Mesh::destroyImplementationVAO() {
/** @todo Get some extension wrangler instead to avoid linker errors to glDeleteVertexArrays() on ES2 */
#ifndef MAGNUM_TARGET_GLES2
glDeleteVertexArrays(1, &_id);
#else
//glDeleteVertexArraysOES(1, &_id);
CORRADE_INTERNAL_ASSERT(false);
#endif
}

Loading…
Cancel
Save