diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-02 20:30:08 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-02 20:30:17 +0300 |
commit | 00808eb39ac04c484fcabac6b18666cb2a0191e7 (patch) | |
tree | 68319846e12dee6ababd82db4a4d28c1dcfe1c71 /source/blender/gpu/GPU_debug.h | |
parent | a5b2841aa0c4b1b90d29077ba174ed31ae8ee4d9 (diff) |
Make OpenGL debug contexts a flag --debug-gpu instead of a compile time
option.
This makes sense, since contexts get created at runtime, there is little
reason to require recompilation for this.
Only works on linux currently, will be doing more OSs later
Diffstat (limited to 'source/blender/gpu/GPU_debug.h')
-rw-r--r-- | source/blender/gpu/GPU_debug.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/gpu/GPU_debug.h b/source/blender/gpu/GPU_debug.h index f89df2b54aa..2c1728bfff1 100644 --- a/source/blender/gpu/GPU_debug.h +++ b/source/blender/gpu/GPU_debug.h @@ -49,9 +49,9 @@ const char *gpuErrorString(GLenum err); /* prints current OpenGL state */ void GPU_state_print(void); -void gpu_assert_no_gl_errors(const char *file, int line, const char *str); +void GPU_assert_no_gl_errors(const char *file, int line, const char *str); -# define GPU_ASSERT_NO_GL_ERRORS(str) gpu_assert_no_gl_errors(__FILE__, __LINE__, (str)) +# define GPU_ASSERT_NO_GL_ERRORS(str) GPU_assert_no_gl_errors(__FILE__, __LINE__, (str)) # define GPU_CHECK_ERRORS_AROUND(glProcCall) \ ( \ @@ -61,14 +61,8 @@ void gpu_assert_no_gl_errors(const char *file, int line, const char *str); ) -#ifdef WITH_GPU_DEBUG /* inserts a debug marker message for the debug context messaging system */ -void gpu_string_marker(size_t size, const char *str); - -# define GPU_STRING_MARKER(size, str) gpu_string_marker((size), (str)) -#else /* WITH_GPU_DEBUG */ -# define GPU_STRING_MARKER(len, str) ((void)(size),(void)(str)) -#endif /* WITH_GPU_DEBUG */ +void GPU_string_marker(size_t size, const char *str); #ifdef __cplusplus } |