diff --git a/gfx/common/gl_common.h b/gfx/common/gl_common.h index 78aced7c40..47fe76061a 100644 --- a/gfx/common/gl_common.h +++ b/gfx/common/gl_common.h @@ -293,15 +293,6 @@ typedef struct gl GLuint vao; } gl_t; -static INLINE void context_bind_hw_render(gl_t *gl, bool enable) -{ - if (!gl) - return; - - if (gl->shared_context_use) - gfx_ctx_bind_hw_render(gl, enable); -} - static INLINE bool gl_check_error(void) { int error = glGetError(); diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index d4fbe225c0..16ae293fc4 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -105,6 +105,12 @@ static const GLfloat white_color[] = { 1, 1, 1, 1, }; +static INLINE void context_bind_hw_render(gl_t *gl, bool enable) +{ + if (gl && gl->shared_context_use) + gfx_ctx_bind_hw_render(gl, enable); +} + static INLINE bool gl_query_extension(gl_t *gl, const char *ext) { bool ret = false;