From 2a631bd0317ac0accffbc65bc061c3bf405824f3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 12 Aug 2019 20:52:33 +0200 Subject: [PATCH] (glcore) Turn this into macro --- gfx/drivers/gl_core.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gfx/drivers/gl_core.c b/gfx/drivers/gl_core.c index f26c02bd5f..a42267e940 100644 --- a/gfx/drivers/gl_core.c +++ b/gfx/drivers/gl_core.c @@ -312,11 +312,9 @@ static void gl_core_render_overlay(gl_core_t *gl, video_frame_info_t *video_info } #endif -static void gl_core_context_bind_hw_render(gl_core_t *gl, bool enable) -{ - if (gl->use_shared_context && gl->ctx_driver->bind_hw_render) - gl->ctx_driver->bind_hw_render(gl->ctx_data, enable); -} +#define gl_core_context_bind_hw_render(*gl, enable) \ + if (gl->use_shared_context) \ + gl->ctx_driver->bind_hw_render(gl->ctx_data, enable) static void gl_core_deinit_hw_render(gl_core_t *gl) {