mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Disable glGetError calls in release config
This commit is contained in:
@@ -218,6 +218,7 @@ struct GpGLFunctions
|
|||||||
|
|
||||||
static void CheckGLError(const GpGLFunctions &gl, IGpLogDriver *logger)
|
static void CheckGLError(const GpGLFunctions &gl, IGpLogDriver *logger)
|
||||||
{
|
{
|
||||||
|
#if GP_DEBUG_CONFIG
|
||||||
GLenum errorCode = gl.GetError();
|
GLenum errorCode = gl.GetError();
|
||||||
if (errorCode != 0)
|
if (errorCode != 0)
|
||||||
{
|
{
|
||||||
@@ -226,6 +227,7 @@ static void CheckGLError(const GpGLFunctions &gl, IGpLogDriver *logger)
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(errorCode == 0);
|
assert(errorCode == 0);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
class GpGLObject
|
class GpGLObject
|
||||||
|
Reference in New Issue
Block a user