--- a/src/error.c Tue Jul 22 21:38:02 2025 +0200 +++ b/src/error.c Wed Jul 23 00:27:46 2025 +0200 @@ -110,11 +110,12 @@ asc_error("%s - GL Error: %s", message, glerr); } -int asc_error_catch_all_gl(void) { +int asc_error_catch_gl(const char *message) { + // TODO: a printf-like signature does not hurt GLenum error; int ret = 0; while ((error = glGetError()) != GL_NO_ERROR) { - asc_error_gl(error, "Uncaught"); + asc_error_gl(error, message); ret = 1; } return ret;