From 559cbb6bc16165d94cee5a2c779c3d2d47efda66 Mon Sep 17 00:00:00 2001 From: takstation Date: Wed, 20 Apr 2022 06:01:21 +0430 Subject: [PATCH] Pause Framebuffer fix (Sirius902) --- libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp index 5373f8799..f314c30d2 100644 --- a/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp +++ b/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp @@ -650,6 +650,7 @@ static int gfx_opengl_create_framebuffer() { } static void gfx_opengl_update_framebuffer_parameters(int fb_id, uint32_t width, uint32_t height, uint32_t msaa_level, bool opengl_invert_y, bool render_target, bool has_depth_buffer, bool can_extract_depth) { + framebuffers.resize(framebuffers.size() + 1); Framebuffer& fb = framebuffers[fb_id]; width = max(width, 1U);