From 4eee7ab042f7ec362c1f2623b8fbef0c85189382 Mon Sep 17 00:00:00 2001 From: JKSunny <60109631+JKSunny@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:50:46 +0200 Subject: [PATCH] Renderers: Fix endless loop in Z_Malloc due to imageDeleted always being qtrue, even if no images were deleted. (https://github.com/JACoders/OpenJK/pull/1209) Co-Authored-By: razor <844370+razish@users.noreply.github.com> --- codemp/rd-vanilla/tr_image.cpp | 2 +- codemp/rd-vulkan/tr_image.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codemp/rd-vanilla/tr_image.cpp b/codemp/rd-vanilla/tr_image.cpp index b874061472..2e4694a24a 100644 --- a/codemp/rd-vanilla/tr_image.cpp +++ b/codemp/rd-vanilla/tr_image.cpp @@ -874,7 +874,7 @@ qboolean RE_RegisterImages_LevelLoadEnd(void) // int iNumImages = AllocatedImages.size(); // more for curiosity, really. - qboolean imageDeleted = qtrue; + qboolean imageDeleted = qfalse; for (AllocatedImages_t::iterator itImage = AllocatedImages.begin(); itImage != AllocatedImages.end(); /* blank */) { qboolean bEraseOccured = qfalse; diff --git a/codemp/rd-vulkan/tr_image.cpp b/codemp/rd-vulkan/tr_image.cpp index 135c3d3aba..c62df39089 100644 --- a/codemp/rd-vulkan/tr_image.cpp +++ b/codemp/rd-vulkan/tr_image.cpp @@ -363,7 +363,7 @@ qboolean RE_RegisterImages_LevelLoadEnd( void ) // int iNumImages = AllocatedImages.size(); // more for curiosity, really. - qboolean imageDeleted = qtrue; + qboolean imageDeleted = qfalse; for (AllocatedImages_t::iterator itImage = AllocatedImages.begin(); itImage != AllocatedImages.end(); /* blank */) { qboolean bEraseOccured = qfalse;