diff --git a/src/Magnum/Magnum.h b/src/Magnum/Magnum.h index deba6a7c5..61d00d4dc 100644 --- a/src/Magnum/Magnum.h +++ b/src/Magnum/Magnum.h @@ -42,10 +42,6 @@ #endif #endif -#ifndef DOXYGEN_GENERATING_OUTPUT -typedef unsigned int GLenum; /* Needed for *Format and *Type enums */ -#endif - namespace Magnum { /* Bring whole Corrade namespace */ diff --git a/src/Magnum/Mesh.cpp b/src/Magnum/Mesh.cpp index a07b7b308..8eca38f0e 100644 --- a/src/Magnum/Mesh.cpp +++ b/src/Magnum/Mesh.cpp @@ -70,7 +70,7 @@ Debug& operator<<(Debug& debug, MeshPrimitive value) { /* LCOV_EXCL_STOP */ } - return debug << "MeshPrimitive(" << Debug::nospace << reinterpret_cast(GLenum(value)) << Debug::nospace << ")"; + return debug << "MeshPrimitive(" << Debug::nospace << reinterpret_cast(UnsignedInt(value)) << Debug::nospace << ")"; } Debug& operator<<(Debug& debug, MeshIndexType value) { @@ -84,7 +84,7 @@ Debug& operator<<(Debug& debug, MeshIndexType value) { /* LCOV_EXCL_STOP */ } - return debug << "MeshIndexType(" << Debug::nospace << reinterpret_cast(GLenum(value)) << Debug::nospace << ")"; + return debug << "MeshIndexType(" << Debug::nospace << reinterpret_cast(UnsignedInt(value)) << Debug::nospace << ")"; } #endif