(glcore) Turn this into macro

This commit is contained in:
twinaphex 2019-08-12 20:52:33 +02:00
parent 69a195fc5c
commit 2a631bd031

View File

@ -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)
{