summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-06 09:56:41 -0400
committerpommicket <pommicket@gmail.com>2023-08-06 09:56:41 -0400
commitbf67a6e3a5a13c805061ee9dbf9241e63c2adff6 (patch)
tree34e1b0ab5c633a9410d4395d3f60cac6c5c06e8c /main.c
parentfe45ee7e366565d94d71facb3e04cd3d4a870758 (diff)
shut up opengl
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5c38d1c..24a775e 100644
--- a/main.c
+++ b/main.c
@@ -106,6 +106,11 @@ static void APIENTRY gl_message_callback(GLenum source, GLenum type, unsigned in
GLsizei length, const char *message, const void *userParam) {
(void)source; (void)type; (void)id; (void)length; (void)userParam;
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION) return;
+ if (strstr(message, "The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping")) {
+ // shut the fuck up
+ // why are you telling me this?
+ return;
+ }
debug_println("Message from OpenGL: %s.", message);
}
#endif