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-09 08:29:58 +0300 |
commit | a77e77599dc2c250be0d3af6bf633d8e143623e4 (patch) | |
tree | 2759b4c98c3b4b8c255f1bf9f33046981db33ccb /source/blender/gpu/GPU_debug.h | |
parent | 9893153799386916a3f5f2d7274ee828685b8acf (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 } |