[vulkan] Safely ignore fisheye and water warp

I didn't like the abort (especially having pushed it to master). This
takes care of things until I can get them implemented properly
(hopefully soon).
This commit is contained in:
Bill Currie 2022-04-01 16:49:39 +09:00
parent 6bbbe4997b
commit 03c403610d
2 changed files with 3 additions and 3 deletions

View file

@ -288,7 +288,7 @@ SCR_UpdateScreen (transform_t *camera, double realtime, SCR_Func *scr_funcs)
if (r_dowarp) {
r_funcs->bind_framebuffer (warp_buffer);
}
if (scr_fisheye->int_val) {
if (scr_fisheye->int_val && fisheye_cube_map) {
int side = fisheye_cube_map->width;
vrect_t feye = { 0, 0, side, side };
r_funcs->set_viewport (&feye);

View file

@ -429,13 +429,13 @@ vulkan_end_frame (void)
static framebuffer_t *
vulkan_create_cube_map (int size)
{
Sys_Error ("not implemented");
return 0;
}
static framebuffer_t *
vulkan_create_frame_buffer (int width, int height)
{
Sys_Error ("not implemented");
return 0;
}
static void