| 65 | } |
| 66 | |
| 67 | static 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 | |
| 84 | static void APIENTRY OGLDebugMsgCallback( |
| 85 | GLenum source, |
no test coverage detected