diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-09 08:29:58 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-15 11:06:14 +0300 |
commit | 55eb8ce87361e968b153a3e728e6842e3069d093 (patch) | |
tree | 1e1010388400c5c4b7075c52fa5c28a074d3c0d4 /source/blender/gpu/GPU_debug.h | |
parent | 9b0f6fa7f77972c2e1838979b2b5bfd0580423d7 (diff) |
OpenGL: enhance debug output
When running blender --debug-gpu
Display which debug facilities are available. One of these, in order of preference:
- OpenGL 4.3
- KHR_debug
- ARB_debug_output
- AMD_debug_output
All messages are logged now, not just errors. Will probably turn some of these off later.
GL_DEBUG_OUTPUT_SYNCHRONOUS lets us break on errors and backtrace to the exact trouble spot.
Callers of GPU_string_marker no longer pass in a message length, just the message itself (null terminated).
Apple provides no GL debug logging features.
Diffstat (limited to 'source/blender/gpu/GPU_debug.h')
-rw-r--r-- | source/blender/gpu/GPU_debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_debug.h b/source/blender/gpu/GPU_debug.h index 2c1728bfff1..ec0db43c38c 100644 --- a/source/blender/gpu/GPU_debug.h +++ b/source/blender/gpu/GPU_debug.h @@ -62,7 +62,7 @@ void GPU_assert_no_gl_errors(const char *file, int line, const char *str); /* inserts a debug marker message for the debug context messaging system */ -void GPU_string_marker(size_t size, const char *str); +void GPU_string_marker(const char *str); #ifdef __cplusplus } |