MCPcopy Create free account
hub / github.com/crossuo/crossuo / EnableOpenGLMessage

Function EnableOpenGLMessage

src/Renderer/RenderDebug.cpp:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static void EnableOpenGLMessage(GLuint id, bool assert, bool log)
68{
69 for (auto &msg : s_openglDebugMsgs)
70 {
71 if (msg.id == OGL_DEBUGMSG_INVALIDID)
72 {
73 msg.id = id;
74 msg.assert = assert ? OGL_DBGMSG_ENABLED : OGL_DBGMSG_DISABLED;
75 msg.log = log ? OGL_DBGMSG_ENABLED : OGL_DBGMSG_DISABLED;
76 return;
77 }
78 }
79
80 Error(Renderer, "Can't change settings for OpenGL debug message, OGL_DEBUGMSG_IDS_MAX reached");
81 assert(false);
82}
83
84static void APIENTRY OGLDebugMsgCallback(
85 GLenum source,

Callers 1

SetupOGLDebugMessageFunction · 0.70

Calls 1

ErrorFunction · 0.85

Tested by

no test coverage detected