mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-17 16:10:29 +00:00
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;
|
||||
} 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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user