From 851fa6a36c072aa73c641a95183b69e6012e01a7 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 21 Oct 2024 02:28:46 -0400 Subject: [PATCH] fix crash --- CMakeLists.txt | 2 +- libraries/imgui | 2 +- libraries/openal-soft | 2 +- src/blt/gfx/framebuffer.cpp | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69ccbfe..a67f881 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.25) -set(BLT_GRAPHICS_VERSION 0.13.34) +set(BLT_GRAPHICS_VERSION 0.13.35) set(BLT_GRAPHICS_TEST_VERSION 0.0.1) project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION}) diff --git a/libraries/imgui b/libraries/imgui index 231cbee..4d00bf8 160000 --- a/libraries/imgui +++ b/libraries/imgui @@ -1 +1 @@ -Subproject commit 231cbee0fc4f59dbe5b8b853a11b08dc84e57c65 +Subproject commit 4d00bf8add44155a4f6b489538bd77d6214a4432 diff --git a/libraries/openal-soft b/libraries/openal-soft index 111397c..7ac9a5c 160000 --- a/libraries/openal-soft +++ b/libraries/openal-soft @@ -1 +1 @@ -Subproject commit 111397c71a5f1c2c88e05da9c84edfdba2e472a4 +Subproject commit 7ac9a5c2b1264fbba2fff2b67a83d820d5449df7 diff --git a/src/blt/gfx/framebuffer.cpp b/src/blt/gfx/framebuffer.cpp index 9ea5838..6d10b74 100644 --- a/src/blt/gfx/framebuffer.cpp +++ b/src/blt/gfx/framebuffer.cpp @@ -113,6 +113,8 @@ namespace blt::gfx void frame_buffer_t::destroy() { + if (fboID == 0) + return; glDeleteFramebuffers(1, &fboID); for (auto& v : render_buffers) v.destroy();