GPU: Fix assert when running without --debug-gpu option on older GL

This was caused by rB3a90f93507a344d2b6eb3ae631371348ff977047
This commit is contained in:
2022-02-06 12:38:42 +01:00
parent 59a8bdd48c
commit 8be20fcc61

View File

@@ -196,6 +196,9 @@ void init_gl_callbacks()
void check_gl_error(const char *info)
{
if (!(G.debug & G_DEBUG_GPU)) {
return;
}
GLenum error = glGetError();
#define ERROR_CASE(err) \