Browse Source

Fix object label queries with EXT_debug_label.

pull/132/head
Vladimír Vondruš 10 years ago
parent
commit
931f78d577
  1. 2
      src/Magnum/AbstractObject.cpp

2
src/Magnum/AbstractObject.cpp

@ -205,7 +205,7 @@ std::string AbstractObject::getLabelImplementationExt(const GLenum identifier, c
std::string label;
label.resize(size+1);
#ifndef CORRADE_TARGET_NACL
glGetObjectLabelEXT(identifier, name, size+1, nullptr, &label[0]);
glGetObjectLabelEXT(type, name, size+1, nullptr, &label[0]);
#else
CORRADE_ASSERT_UNREACHABLE();
#endif

Loading…
Cancel
Save