Skip to content

Instantly share code, notes, and snippets.

View o-dka's full-sized avatar
🦎
lizard

odka o-dka

🦎
lizard
View GitHub Profile
#include <stdio.h>
#include <epoxy/gl.h> // replace with proper include
void gl_debug_callback(GLenum source, GLenum type, GLuint id,
GLenum severity, GLsizei length,
const char *message, const void *) {
const char *sev = "";
switch (severity) {
case GL_DEBUG_SEVERITY_HIGH: sev = "\e[91m"; break;
case GL_DEBUG_SEVERITY_MEDIUM: sev = "\e[93m"; break;