Remove post_render context callback.

Was supposed to be used for overlay, but is useless now.
This commit is contained in:
Themaister 2013-03-29 13:26:07 +01:00
parent 426b3a255d
commit 067e00b3dd
13 changed files with 1 additions and 18 deletions

View File

@ -282,6 +282,5 @@ const gfx_ctx_driver_t gfx_ctx_android = {
NULL, NULL,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"android", "android",
}; };

View File

@ -404,6 +404,5 @@ const gfx_ctx_driver_t gfx_ctx_bbqnx = {
NULL, NULL,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"blackberry_qnx", "blackberry_qnx",
}; };

View File

@ -629,7 +629,6 @@ const gfx_ctx_driver_t gfx_ctx_drm_egl = {
gfx_ctx_get_proc_address, gfx_ctx_get_proc_address,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"kms-egl", "kms-egl",
}; };

View File

@ -522,7 +522,6 @@ const gfx_ctx_driver_t gfx_ctx_glx = {
gfx_ctx_get_proc_address, gfx_ctx_get_proc_address,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"glx", "glx",
}; };

View File

@ -136,6 +136,5 @@ const gfx_ctx_driver_t gfx_ctx_ios = {
NULL, NULL,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"ios", "ios",
}; };

View File

@ -430,7 +430,6 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = {
NULL, NULL,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"ps3", "ps3",
#ifdef HAVE_RMENU #ifdef HAVE_RMENU
gfx_ctx_get_available_resolutions, gfx_ctx_get_available_resolutions,

View File

@ -371,7 +371,6 @@ const gfx_ctx_driver_t gfx_ctx_sdl_gl = {
gfx_ctx_get_proc_address, gfx_ctx_get_proc_address,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"sdl-gl", "sdl-gl",
}; };

View File

@ -480,6 +480,5 @@ const gfx_ctx_driver_t gfx_ctx_videocore = {
gfx_ctx_get_proc_address, gfx_ctx_get_proc_address,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"videocore", "videocore",
}; };

View File

@ -456,7 +456,6 @@ const gfx_ctx_driver_t gfx_ctx_wgl = {
gfx_ctx_get_proc_address, gfx_ctx_get_proc_address,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"wgl", "wgl",
}; };

View File

@ -395,7 +395,6 @@ const gfx_ctx_driver_t gfx_ctx_xdk = {
NULL, NULL,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"xdk", "xdk",
#if defined(HAVE_RMENU) #if defined(HAVE_RMENU)
gfx_ctx_xdk_get_available_resolutions, gfx_ctx_xdk_get_available_resolutions,

View File

@ -565,7 +565,6 @@ const gfx_ctx_driver_t gfx_ctx_x_egl = {
gfx_ctx_get_proc_address, gfx_ctx_get_proc_address,
gfx_ctx_init_egl_image_buffer, gfx_ctx_init_egl_image_buffer,
gfx_ctx_write_egl_image, gfx_ctx_write_egl_image,
NULL,
"x-egl", "x-egl",
}; };

View File

@ -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. // 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); 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. // Human readable string.
const char *ident; const char *ident;

View File

@ -1431,10 +1431,8 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
if (msg && gl->font_ctx) if (msg && gl->font_ctx)
gl->font_ctx->render_msg(gl, msg, NULL); gl->font_ctx->render_msg(gl, msg, NULL);
if (gl->ctx_driver->post_render)
context_post_render_func(gl);
#ifdef HAVE_OVERLAY #ifdef HAVE_OVERLAY
else if (gl->overlay_enable) if (gl->overlay_enable)
gl_render_overlay(gl); gl_render_overlay(gl);
#endif #endif