GPU: Fix assert when running without --debug-gpu option on older GL
This was caused by rB3a90f93507a344d2b6eb3ae631371348ff977047
This commit is contained in:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user