mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Set ctx_driver
This commit is contained in:
parent
e661cf3cfd
commit
448d2d333c
@ -35,6 +35,7 @@ typedef struct gdi
|
||||
unsigned screen_width;
|
||||
unsigned screen_height;
|
||||
void *ctx_data;
|
||||
const gfx_ctx_driver_t *ctx_driver;
|
||||
} gdi_t;
|
||||
|
||||
typedef struct gdi_texture
|
||||
|
@ -318,6 +318,7 @@ struct gl
|
||||
const gl_renderchain_driver_t *renderchain_driver;
|
||||
void *renderchain_data;
|
||||
void *ctx_data;
|
||||
const gfx_ctx_driver_t *ctx_driver;
|
||||
};
|
||||
|
||||
static INLINE void gl_bind_texture(GLuint id, GLint wrap_mode, GLint mag_filter,
|
||||
|
@ -30,6 +30,7 @@ typedef struct sixel
|
||||
unsigned screen_width;
|
||||
unsigned screen_height;
|
||||
void *ctx_data;
|
||||
const gfx_ctx_driver_t *ctx_driver;
|
||||
} sixel_t;
|
||||
|
||||
#endif
|
||||
|
@ -333,6 +333,7 @@ typedef struct vk
|
||||
vulkan_context_t *context;
|
||||
video_info_t video;
|
||||
void *ctx_data;
|
||||
const gfx_ctx_driver_t *ctx_driver;
|
||||
|
||||
VkFormat tex_fmt;
|
||||
math_matrix_4x4 mvp, mvp_no_rot;
|
||||
|
@ -114,6 +114,7 @@ static void *gdi_gfx_init(const video_info_t *video,
|
||||
if (ctx_data)
|
||||
gdi->ctx_data = ctx_data;
|
||||
|
||||
gdi->ctx_driver = ctx_driver;
|
||||
video_context_driver_set((const gfx_ctx_driver_t*)ctx_driver);
|
||||
|
||||
RARCH_LOG("[GDI]: Found GDI context: %s\n", ctx_driver->ident);
|
||||
|
@ -1733,6 +1733,7 @@ static void *gl_init(const video_info_t *video,
|
||||
|
||||
video_context_driver_set((const gfx_ctx_driver_t*)ctx_driver);
|
||||
|
||||
gl->ctx_driver = ctx_driver;
|
||||
gl->video_info = *video;
|
||||
|
||||
RARCH_LOG("[GL]: Found GL context: %s\n", ctx_driver->ident);
|
||||
|
@ -227,6 +227,7 @@ static void *sixel_gfx_init(const video_info_t *video,
|
||||
if (ctx_data)
|
||||
sixel->ctx_data = ctx_data;
|
||||
|
||||
sixel->ctx_driver = ctx_driver;
|
||||
video_context_driver_set((const gfx_ctx_driver_t*)ctx_driver);
|
||||
|
||||
RARCH_LOG("[SIXEL]: Found SIXEL context: %s\n", ctx_driver->ident);
|
||||
|
@ -71,6 +71,8 @@ typedef struct
|
||||
VGuint mGlyphIndices[1024];
|
||||
VGPaint mPaintFg;
|
||||
VGPaint mPaintBg;
|
||||
void *ctx_data;
|
||||
const gfx_ctx_driver_t *ctx_driver;
|
||||
} vg_t;
|
||||
|
||||
static PFNVGCREATEEGLIMAGETARGETKHRPROC pvgCreateEGLImageTargetKHR;
|
||||
@ -115,6 +117,7 @@ static void *vg_init(const video_info_t *video,
|
||||
if (ctx_data)
|
||||
vg->ctx_data = ctx_data;
|
||||
|
||||
vg->ctx_driver = ctx;
|
||||
video_context_driver_set((void*)ctx);
|
||||
|
||||
video_context_driver_get_video_size(&mode);
|
||||
|
@ -1146,6 +1146,7 @@ static void *vulkan_init(const video_info_t *video,
|
||||
goto error;
|
||||
}
|
||||
|
||||
vk->ctx_driver = ctx_driver;
|
||||
video_context_driver_set((const gfx_ctx_driver_t*)ctx_driver);
|
||||
|
||||
video_context_driver_get_video_size(&mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user