diff options
| author | degasus <wickmarkus@web.de> | 2014-11-22 15:07:52 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-11-22 15:07:52 +0100 |
| commit | 36fe8ccf46eea30c0c0753eb7089ea351fbb97a4 (patch) | |
| tree | f930119a2cdec8b847e1dd624cade8058a6e2ee3 /Source/Core/VideoBackends/OGL/Render.cpp | |
| parent | f8879c8ec63c29520eeb14c0661dc343cf1d2079 (diff) | |
OGL: also show driver warnings on release builds
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index 3d21b6891c..b66d24b0fd 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -161,7 +161,6 @@ static void ApplySSAASettings() } } -#if defined(_DEBUG) || defined(DEBUGFAST) static void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* message, const void* userParam) { const char *s_source; @@ -195,7 +194,6 @@ static void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLe default: ERROR_LOG(VIDEO, "id: %x, source: %s, type: %s - %s", id, s_source, s_type, message); break; } } -#endif // Two small Fallbacks to avoid GL_ARB_ES2_compatibility static void GLAPIENTRY DepthRangef(GLfloat neardepth, GLfloat fardepth) @@ -520,7 +518,7 @@ Renderer::Renderer() g_ogl_config.eSupportedGLSLVersion = GLSL_150; } } -#if defined(_DEBUG) || defined(DEBUGFAST) + if (GLExtensions::Supports("GL_KHR_debug")) { glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, true); @@ -533,7 +531,7 @@ Renderer::Renderer() glDebugMessageCallbackARB( ErrorCallback, nullptr ); glEnable( GL_DEBUG_OUTPUT ); } -#endif + int samples; glGetIntegerv(GL_SAMPLES, &samples); if (samples > 1) |
