mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Add resolve extensions callback
This commit is contained in:
parent
69d3fd5047
commit
19ad9aa1cb
@ -1371,6 +1371,9 @@ static bool resolve_extensions(gl_t *gl, const char *context_ident)
|
||||
|
||||
video_driver_unset_rgba();
|
||||
|
||||
if (gl->renderchain_driver->resolve_extensions)
|
||||
gl->renderchain_driver->resolve_extensions(gl, gl->renderchain_data, context_ident);
|
||||
|
||||
#if defined(HAVE_OPENGLES) && !defined(HAVE_PSGL)
|
||||
if (!gl_check_capability(GL_CAPS_BGRA8888))
|
||||
{
|
||||
|
@ -327,10 +327,11 @@ gl_renderchain_driver_t gl2_renderchain = {
|
||||
NULL, /* renderchain_init */
|
||||
NULL, /* init_hw_render */
|
||||
gl1_renderchain_free,
|
||||
NULL, /* deinit_hw_render */
|
||||
NULL, /* start_render */
|
||||
NULL, /* deinit_hw_render */
|
||||
NULL, /* start_render */
|
||||
NULL, /* check_fbo_dimensions */
|
||||
NULL, /* recompute_pass_sizes */
|
||||
NULL, /* renderchain_render */
|
||||
NULL, /* renderchain_render */
|
||||
NULL, /* resolve_extensions */
|
||||
"gl1",
|
||||
};
|
||||
|
@ -1461,6 +1461,11 @@ static void gl2_renderchain_init_textures_reference(
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gl2_renderchain_resolve_extensions(void *data,
|
||||
void *chain_data, const char *context_ident)
|
||||
{
|
||||
}
|
||||
|
||||
gl_renderchain_driver_t gl2_renderchain = {
|
||||
NULL, /* set_coords */
|
||||
NULL, /* set_mvp */
|
||||
@ -1513,5 +1518,6 @@ gl_renderchain_driver_t gl2_renderchain = {
|
||||
gl2_renderchain_check_fbo_dimensions,
|
||||
gl2_renderchain_recompute_pass_sizes,
|
||||
gl2_renderchain_render,
|
||||
gl2_renderchain_resolve_extensions,
|
||||
"gl2",
|
||||
};
|
||||
|
@ -904,6 +904,10 @@ typedef struct gl_renderchain_driver
|
||||
uint64_t frame_count,
|
||||
const struct video_tex_info *tex_info,
|
||||
const struct video_tex_info *feedback_info);
|
||||
void (*resolve_extensions)(
|
||||
void *data,
|
||||
void *chain_data,
|
||||
const char *context_ident);
|
||||
const char *ident;
|
||||
} gl_renderchain_driver_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user