From dd2cac1e8a4874f253297bad8ac5b58e7b4b0e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 24 Jan 2014 02:10:05 +0100 Subject: [PATCH] Assert on each OES_vertex_array_object function occurence. Until we have extension wrangler set up for ES2. --- src/Magnum/Mesh.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Magnum/Mesh.cpp b/src/Magnum/Mesh.cpp index 3db838837..250a7f0bd 100644 --- a/src/Magnum/Mesh.cpp +++ b/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 }