Browse Source

Proper cross-platform ordering of function attributes.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
d2a3e71215
  1. 3
      src/Magnum/DebugMessage.cpp

3
src/Magnum/DebugMessage.cpp

@ -38,10 +38,11 @@ namespace {
/** @todo Re-enable when extension wrangler is available for ES */ /** @todo Re-enable when extension wrangler is available for ES */
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
void
#ifdef CORRADE_TARGET_WINDOWS #ifdef CORRADE_TARGET_WINDOWS
APIENTRY APIENTRY
#endif #endif
void callbackWrapper(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) { callbackWrapper(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) {
Context::current()->state().debug->messageCallback(DebugMessage::Source(source), DebugMessage::Type(type), id, DebugMessage::Severity(severity), std::string(message, length), userParam); Context::current()->state().debug->messageCallback(DebugMessage::Source(source), DebugMessage::Type(type), id, DebugMessage::Severity(severity), std::string(message, length), userParam);
} }
#endif #endif

Loading…
Cancel
Save