mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-23 21:21:19 +00:00
Remove post_render context callback.
Was supposed to be used for overlay, but is useless now.
This commit is contained in:
parent
426b3a255d
commit
067e00b3dd
@ -282,6 +282,5 @@ const gfx_ctx_driver_t gfx_ctx_android = {
|
||||
NULL,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"android",
|
||||
};
|
||||
|
@ -404,6 +404,5 @@ const gfx_ctx_driver_t gfx_ctx_bbqnx = {
|
||||
NULL,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"blackberry_qnx",
|
||||
};
|
||||
|
@ -629,7 +629,6 @@ const gfx_ctx_driver_t gfx_ctx_drm_egl = {
|
||||
gfx_ctx_get_proc_address,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"kms-egl",
|
||||
};
|
||||
|
||||
|
@ -522,7 +522,6 @@ const gfx_ctx_driver_t gfx_ctx_glx = {
|
||||
gfx_ctx_get_proc_address,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"glx",
|
||||
};
|
||||
|
||||
|
@ -136,6 +136,5 @@ const gfx_ctx_driver_t gfx_ctx_ios = {
|
||||
NULL,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"ios",
|
||||
};
|
||||
|
@ -430,7 +430,6 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = {
|
||||
NULL,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"ps3",
|
||||
#ifdef HAVE_RMENU
|
||||
gfx_ctx_get_available_resolutions,
|
||||
|
@ -371,7 +371,6 @@ const gfx_ctx_driver_t gfx_ctx_sdl_gl = {
|
||||
gfx_ctx_get_proc_address,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"sdl-gl",
|
||||
};
|
||||
|
||||
|
@ -480,6 +480,5 @@ const gfx_ctx_driver_t gfx_ctx_videocore = {
|
||||
gfx_ctx_get_proc_address,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"videocore",
|
||||
};
|
||||
|
@ -456,7 +456,6 @@ const gfx_ctx_driver_t gfx_ctx_wgl = {
|
||||
gfx_ctx_get_proc_address,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"wgl",
|
||||
};
|
||||
|
||||
|
@ -395,7 +395,6 @@ const gfx_ctx_driver_t gfx_ctx_xdk = {
|
||||
NULL,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"xdk",
|
||||
#if defined(HAVE_RMENU)
|
||||
gfx_ctx_xdk_get_available_resolutions,
|
||||
|
@ -565,7 +565,6 @@ const gfx_ctx_driver_t gfx_ctx_x_egl = {
|
||||
gfx_ctx_get_proc_address,
|
||||
gfx_ctx_init_egl_image_buffer,
|
||||
gfx_ctx_write_egl_image,
|
||||
NULL,
|
||||
"x-egl",
|
||||
};
|
||||
|
||||
|
@ -110,10 +110,6 @@ typedef struct gfx_ctx_driver
|
||||
// Always returns true the first time it's called for a new index. The graphics core must handle a change in the handle correctly.
|
||||
bool (*write_egl_image)(const void *frame, unsigned width, unsigned height, unsigned pitch, bool rgb32, unsigned index, void **image_handle);
|
||||
|
||||
// Called after frame is rendered, but before swap.
|
||||
// Can be used to render context-specific overlays and stuff.
|
||||
bool (*post_render)(void *gl);
|
||||
|
||||
// Human readable string.
|
||||
const char *ident;
|
||||
|
||||
|
4
gfx/gl.c
4
gfx/gl.c
@ -1431,10 +1431,8 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
||||
if (msg && gl->font_ctx)
|
||||
gl->font_ctx->render_msg(gl, msg, NULL);
|
||||
|
||||
if (gl->ctx_driver->post_render)
|
||||
context_post_render_func(gl);
|
||||
#ifdef HAVE_OVERLAY
|
||||
else if (gl->overlay_enable)
|
||||
if (gl->overlay_enable)
|
||||
gl_render_overlay(gl);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user