diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-01 17:16:48 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-01 17:16:48 +0300 |
commit | a708cdabe6ddf6b5d65e491cce0018b36695f443 (patch) | |
tree | 850bddedfbee2eddb0b4d1dbb1488f4c6c51f8e3 /source/blender/gpu | |
parent | 7e3967ed37b9ac35813a9641f9940de7c5f06394 (diff) |
Fix T80328 Commit introduced build warnings in Windows
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/opengl/gl_debug.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/gpu/opengl/gl_debug.cc b/source/blender/gpu/opengl/gl_debug.cc index fb3c4f52fd0..c1a3780bb51 100644 --- a/source/blender/gpu/opengl/gl_debug.cc +++ b/source/blender/gpu/opengl/gl_debug.cc @@ -63,11 +63,11 @@ static void APIENTRY debug_callback(GLenum UNUSED(source), const GLchar *message, const GLvoid *UNUSED(userParm)) { - const char format[] = "GPUDebug: %s%s\e[0m\n"; + const char format[] = "GPUDebug: %s%s\033[0m\n"; if (ELEM(severity, GL_DEBUG_SEVERITY_LOW, GL_DEBUG_SEVERITY_NOTIFICATION)) { if (VERBOSE) { - fprintf(stderr, format, "\e[2m", message); + fprintf(stderr, format, "\033[2m", message); } } else { @@ -75,22 +75,22 @@ static void APIENTRY debug_callback(GLenum UNUSED(source), case GL_DEBUG_TYPE_ERROR: case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR: - fprintf(stderr, format, "\e[31;1mError\e[39m: ", message); + fprintf(stderr, format, "\033[31;1mError\033[39m: ", message); break; case GL_DEBUG_TYPE_PORTABILITY: case GL_DEBUG_TYPE_PERFORMANCE: case GL_DEBUG_TYPE_OTHER: case GL_DEBUG_TYPE_MARKER: /* KHR has this, ARB does not */ default: - fprintf(stderr, format, "\e[33;1mWarning\e[39m: ", message); + fprintf(stderr, format, "\033[33;1mWarning\033[39m: ", message); break; } if (VERBOSE && severity == GL_DEBUG_SEVERITY_HIGH) { /* Focus on error message. */ - fprintf(stderr, "\e[2m"); + fprintf(stderr, "\033[2m"); BLI_system_backtrace(stderr); - fprintf(stderr, "\e[0m\n"); + fprintf(stderr, "\033[0m\n"); fflush(stderr); } } |