mirror of
https://github.com/mpv-player/mpv
synced 2025-01-10 08:59:45 +00:00
vo_opengl: slightly compress gl_set_debug_logger()
No functional changes.
This commit is contained in:
parent
b8b2a465d1
commit
bd98d9e232
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user