From 88343d73eaef283f908aab6dd043e53ad1103583 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 1 Apr 2022 16:49:39 +0900 Subject: [PATCH] [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). --- libs/video/renderer/r_screen.c | 2 +- libs/video/renderer/vid_render_vulkan.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/video/renderer/r_screen.c b/libs/video/renderer/r_screen.c index 86608c069..cabd491cc 100644 --- a/libs/video/renderer/r_screen.c +++ b/libs/video/renderer/r_screen.c @@ -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); diff --git a/libs/video/renderer/vid_render_vulkan.c b/libs/video/renderer/vid_render_vulkan.c index 9c65ef615..f845ce9c2 100644 --- a/libs/video/renderer/vid_render_vulkan.c +++ b/libs/video/renderer/vid_render_vulkan.c @@ -430,13 +430,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