Browse Source

GL: don't try to test mesh labels if VAOs are disabled.

pull/255/head
Vladimír Vondruš 8 years ago
parent
commit
b4c52b096d
  1. 8
      src/Magnum/GL/Test/MeshGLTest.cpp

8
src/Magnum/GL/Test/MeshGLTest.cpp

@ -439,6 +439,14 @@ template<class T> void MeshGLTest::primitive() {
#ifndef MAGNUM_TARGET_WEBGL
void MeshGLTest::label() {
#ifndef MAGNUM_TARGET_GLES
if(!Context::current().isExtensionSupported<Extensions::ARB::vertex_array_object>())
CORRADE_SKIP(Extensions::ARB::vertex_array_object::string() + std::string(" is not available."));
#elif defined(MAGNUM_TARGET_GLES2)
if(!Context::current().isExtensionSupported<Extensions::OES::vertex_array_object>())
CORRADE_SKIP(Extensions::OES::vertex_array_object::string() + std::string(" is not available."));
#endif
/* No-Op version is tested in AbstractObjectGLTest */
if(!Context::current().isExtensionSupported<Extensions::KHR::debug>() &&
!Context::current().isExtensionSupported<Extensions::EXT::debug_label>())

Loading…
Cancel
Save