diff options
author | wm4 <wm4@nowhere> | 2016-03-28 18:07:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-28 18:07:41 +0200 |
commit | bd98d9e232242169d594d2a0873f6327ad361463 (patch) | |
tree | 5bd1e2b6deb3588384f88caa4695d403a1e77c2b /video/out | |
parent | b8b2a465d10e64aff370ca8406f65832d0f64fed (diff) | |
download | mpv-bd98d9e232242169d594d2a0873f6327ad361463.tar.bz2 mpv-bd98d9e232242169d594d2a0873f6327ad361463.tar.xz |
vo_opengl: slightly compress gl_set_debug_logger()
No functional changes.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/utils.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index 287d9aee4a..40f1beba5f 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -506,13 +506,8 @@ static void GLAPIENTRY gl_debug_cb(GLenum source, GLenum type, GLuint id, void gl_set_debug_logger(GL *gl, struct mp_log *log) { - if (gl->DebugMessageCallback) { - if (log) { - gl->DebugMessageCallback(gl_debug_cb, log); - } else { - gl->DebugMessageCallback(NULL, NULL); - } - } + if (gl->DebugMessageCallback) + gl->DebugMessageCallback(log ? gl_debug_cb : NULL, log); } #define SC_ENTRIES 32 |