Fix opengl's check_error
helper procedure not printing errors in debug builds
#4846
+9
−11
check_error
helper procedure not printing errors in debug builds
#4846