GHOST: OpenGL errors now use "file:line: " contention for errors

Make OpenGL errors match formatting used by GCC & clang
(as well as Blender's logging), so utilities that recognize this
convention can be used to quickly access this location.
This commit is contained in:
Campbell Barton 2022-12-06 14:48:38 +11:00
parent f68e50a263
commit d486f33d63
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ bool win32_chk(bool result, const char *file, int line, const char *text)
# ifndef NDEBUG
_ftprintf(
stderr, "%s(%d):[%s] -> Win32 Error# (%lu): %s", file, line, text, ulong(error), msg);
stderr, "%s:%d: [%s] -> Win32 Error# (%lu): %s", file, line, text, ulong(error), msg);
# else
_ftprintf(stderr, "Win32 Error# (%lu): %s", ulong(error), msg);
# endif

View File

@ -123,7 +123,7 @@ static bool egl_chk(bool result,
#ifndef NDEBUG
fprintf(stderr,
"%s(%d):[%s] -> EGL Error (0x%04X): %s: %s\n",
"%s:%d: [%s] -> EGL Error (0x%04X): %s: %s\n",
file,
line,
text,