mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(GL) Go through gfx_ctx_get_ptr
This commit is contained in:
parent
73bfdfccdb
commit
5d60938560
@ -366,13 +366,12 @@ typedef struct gl
|
|||||||
|
|
||||||
static INLINE void context_bind_hw_render(gl_t *gl, bool enable)
|
static INLINE void context_bind_hw_render(gl_t *gl, bool enable)
|
||||||
{
|
{
|
||||||
driver_t *driver = driver_get_ptr();
|
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||||
const gfx_ctx_driver_t *ctx_driver = driver ? (const gfx_ctx_driver_t*)driver->video_context : NULL;
|
|
||||||
if (!gl)
|
if (!gl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (gl->shared_context_use && ctx_driver->bind_hw_render)
|
if (gl->shared_context_use && ctx->bind_hw_render)
|
||||||
ctx_driver->bind_hw_render(gl, enable);
|
ctx->bind_hw_render(gl, enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
static INLINE bool gl_check_error(void)
|
static INLINE bool gl_check_error(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user