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:
parent
f68e50a263
commit
d486f33d63
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue