diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 21:59:50 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 21:59:50 -0400 |
| commit | 01f4ab89dd2c668e64af5459a615e50eb630dfc1 (patch) | |
| tree | cffa4bbe3453d8ae815c6d924004df58d8bb7a29 /graphics.c | |
| parent | 42af50b090f03e920368de3fd6872cf5b62c918e (diff) | |
send output
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,7 +10,8 @@ MessageCallback(GLenum source, GLsizei length, const GLchar* message, const void* userParam) { - fprintf( stderr, "GL CALLBACK: %s type = 0x%x, severity = 0x%x, message = %s\n", + if (type != GL_DEBUG_TYPE_ERROR) return; + fprintf(stderr, "GL CALLBACK: %s type = 0x%x, severity = 0x%x, message = %s\n", ( type == GL_DEBUG_TYPE_ERROR ? "** GL ERROR **" : "" ), type, severity, message ); } @@ -76,7 +77,7 @@ bool init_gl(client_state* state) { return false; } - printf("EGL version %u.%u\n", major, minor); + fprintf(stderr, "EGL version %u.%u\n", major, minor); } eglBindAPI(EGL_OPENGL_API); |
