Fixing issues, enabled warnings and fixing on linux

This commit is contained in:
Krzosa Karol
2026-01-31 22:53:18 +01:00
parent 52390a7aa8
commit bbf97eba2f
32 changed files with 117 additions and 99 deletions

View File

@@ -75,6 +75,7 @@ static const char *glsl_fshader_es3 = R"==(#version 300 es
void ReportWarningf(const char *fmt, ...);
void GLDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *user) {
Unused(source); Unused(type); Unused(id); Unused(length); Unused(user);
ReportWarningf("OpenGL message: %s", message);
if (severity == GL_DEBUG_SEVERITY_HIGH || severity == GL_DEBUG_SEVERITY_MEDIUM) {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "OpenGL error", message, NULL);