static void init(void) { if (GLAD_GL_EXT_debug_marker) { assert(glInsertEventMarkerEXT); glInsertEventMarkerEXT(strlen("Init"), "Init - this should not be included"); } glClearColor(0.4, 0.4, 0.4, 0.0); }
void DebugMarker::markImplementationDebugger(const std::string& string) { /** @todo Re-enable when extension wrangler is available for ES */ #ifndef MAGNUM_TARGET_GLES glStringMarkerGREMEDY(string.length(), string.c_str()); #else #if 0 glInsertEventMarkerEXT(string.length(), string.c_str()); #else static_cast<void>(string); #endif #endif }
static void GLAPIENTRY extDebugMessageInsert(GLsizei length, const GLchar *buf) { if (length < 0) length = 0; glInsertEventMarkerEXT(length, buf); }