Move context_bind_hw_render inline function to gl.c
This commit is contained in:
parent
75f10bfcdb
commit
c614118ed8
|
@ -293,15 +293,6 @@ typedef struct gl
|
||||||
GLuint vao;
|
GLuint vao;
|
||||||
} gl_t;
|
} 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)
|
static INLINE bool gl_check_error(void)
|
||||||
{
|
{
|
||||||
int error = glGetError();
|
int error = glGetError();
|
||||||
|
|
|
@ -105,6 +105,12 @@ static const GLfloat white_color[] = {
|
||||||
1, 1, 1, 1,
|
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)
|
static INLINE bool gl_query_extension(gl_t *gl, const char *ext)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
Loading…
Reference in New Issue