[renderer] Clean up post processing

While it's not where I want it to be, it at least now no longer messes
with frame buffer binding or the view ports. This involved switching
around buffers in D_WarpScreen so that the main buffer could be bound
before post-processing.
This commit is contained in:
Bill Currie 2022-03-26 00:29:34 +09:00
parent 25e6865fa5
commit f2bc5b560f
8 changed files with 45 additions and 31 deletions

View file

@ -41,6 +41,7 @@ struct mod_alias_ctx_s;
struct mod_sprite_ctx_s;
struct entqueue_s;
struct framebuffer_s;
struct vrect_s;
/*
All video plugins must export these functions
@ -120,6 +121,7 @@ typedef struct vid_render_funcs_s {
struct framebuffer_s *(*create_cube_map) (int side);
struct framebuffer_s *(*create_frame_buffer) (int width, int height);
void (*bind_framebuffer) (struct framebuffer_s *framebuffer);
void (*set_viewport) (const struct vrect_s *view);
vid_model_funcs_t *model_funcs;
} vid_render_funcs_t;