From c614118ed823f9b25ad70dde934fd37c53ada878 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 8 Dec 2015 09:44:19 +0100 Subject: [PATCH] Move context_bind_hw_render inline function to gl.c --- gfx/common/gl_common.h | 9 --------- gfx/drivers/gl.c | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) 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;