From 93195207dc0f75e7f198f294ebbeb25ff9f25931 Mon Sep 17 00:00:00 2001 From: elasota Date: Wed, 7 Apr 2021 00:03:09 -0400 Subject: [PATCH] Disable glGetError calls in release config --- AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp b/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp index e00e22f..cfa5999 100644 --- a/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp +++ b/AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp @@ -218,6 +218,7 @@ struct GpGLFunctions static void CheckGLError(const GpGLFunctions &gl, IGpLogDriver *logger) { +#if GP_DEBUG_CONFIG GLenum errorCode = gl.GetError(); if (errorCode != 0) { @@ -226,6 +227,7 @@ static void CheckGLError(const GpGLFunctions &gl, IGpLogDriver *logger) } assert(errorCode == 0); +#endif } class GpGLObject