Move context_bind_hw_render inline function to gl.c

This commit is contained in:
twinaphex 2015-12-08 09:44:19 +01:00
parent 75f10bfcdb
commit c614118ed8
2 changed files with 6 additions and 9 deletions

View File

@ -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();

View File

@ -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;