mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 22:43:41 +00:00
Go through gfx_ctx_bind_hw_render
This commit is contained in:
parent
0ef148f460
commit
234baf09bd
@ -366,12 +366,11 @@ typedef struct gl
|
||||
|
||||
static INLINE void context_bind_hw_render(gl_t *gl, bool enable)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
if (!gl)
|
||||
return;
|
||||
|
||||
if (gl->shared_context_use && ctx->bind_hw_render)
|
||||
ctx->bind_hw_render(gl, enable);
|
||||
if (gl->shared_context_use)
|
||||
gfx_ctx_bind_hw_render(gl, enable);
|
||||
}
|
||||
|
||||
static INLINE bool gl_check_error(void)
|
||||
|
@ -107,6 +107,14 @@ void gfx_ctx_swap_buffers(void *data)
|
||||
ctx->swap_buffers(data);
|
||||
}
|
||||
|
||||
void gfx_ctx_bind_hw_render(void *data, bool enable)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx && ctx->bind_hw_render)
|
||||
ctx->bind_hw_render(data, enable);
|
||||
}
|
||||
|
||||
bool gfx_ctx_focus(void *data)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
@ -236,6 +236,8 @@ void gfx_ctx_set_resize(void *data, unsigned width, unsigned height);
|
||||
|
||||
void gfx_ctx_swap_interval(void *data, unsigned interval);
|
||||
|
||||
void gfx_ctx_bind_hw_render(void *data, bool enable);
|
||||
|
||||
void gfx_ctx_free(void *data);
|
||||
|
||||
void gfx_ctx_input_driver(void *data,
|
||||
|
Loading…
x
Reference in New Issue
Block a user