diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-06-26 17:18:06 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-06-26 18:40:54 +0300 |
commit | 79c106705acfff06508b2dc4edcb353e85df6ea6 (patch) | |
tree | 7dfbba934e24fa4fd40f69c3688765885758c787 /source/blender/gpu/intern | |
parent | 8690ea611e804e2adfc8a346420787818c85950f (diff) |
Make code compile with GPU_DEBUG
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_debug.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/source/blender/gpu/intern/gpu_debug.c b/source/blender/gpu/intern/gpu_debug.c index 7bcc51aef31..9f73b77ef5a 100644 --- a/source/blender/gpu/intern/gpu_debug.c +++ b/source/blender/gpu/intern/gpu_debug.c @@ -199,23 +199,11 @@ void gpu_debug_init(void) #endif if (GLEW_KHR_debug) { -#ifndef GLEW_NO_ES - if (MX_profile_es20) - { - glDebugMessageCallbackKHR(gpu_debug_proc, mxGetCurrentContext()); - glDebugMessageControlKHR(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE); - GPU_STRING_MARKER(sizeof(success), success); - } - else -#endif - { #ifndef GLEW_ES_ONLY glDebugMessageCallback(gpu_debug_proc, mxGetCurrentContext()); glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE); GPU_STRING_MARKER(sizeof(success), success); #endif - } - return; } @@ -256,19 +244,9 @@ void gpu_debug_exit(void) #endif if (GLEW_KHR_debug) { -#ifndef GLEW_NO_ES - if (MX_profile_es20) - { - glDebugMessageCallbackKHR(NULL, NULL); - } - else -#endif - { #ifndef GLEW_ES_ONLY - glDebugMessageCallback(NULL, NULL); + glDebugMessageCallback(NULL, NULL); #endif - } - return; } @@ -302,19 +280,9 @@ void gpu_string_marker(size_t length, const char *buf) #endif if (GLEW_KHR_debug) { -#ifndef GLEW_NO_ES - if (MX_profile_es20) - { - glDebugMessageInsertKHR(GL_DEBUG_SOURCE_APPLICATION_KHR, GL_DEBUG_TYPE_MARKER_KHR, 0, GL_DEBUG_SEVERITY_NOTIFICATION_KHR, length, buf); - } - else -#endif - { #ifndef GLEW_ES_ONLY - glDebugMessageInsert(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_MARKER, 0, GL_DEBUG_SEVERITY_NOTIFICATION, length, buf); + glDebugMessageInsert(GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_MARKER, 0, GL_DEBUG_SEVERITY_NOTIFICATION, length, buf); #endif - } - return; } |