From 8c7f8f8ebc769115ea1f4c86e8de05015a5cd16c Mon Sep 17 00:00:00 2001 From: Felix Klinge Date: Mon, 27 Nov 2023 15:47:56 +0100 Subject: [PATCH] Fix potential crash when resizing windows when using D3D12 graphics backend --- Backends/Graphics4/G4onG5/Sources/kinc/backend/graphics4/G4.c.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Backends/Graphics4/G4onG5/Sources/kinc/backend/graphics4/G4.c.h b/Backends/Graphics4/G4onG5/Sources/kinc/backend/graphics4/G4.c.h index b26bfcad6..a35f7a558 100644 --- a/Backends/Graphics4/G4onG5/Sources/kinc/backend/graphics4/G4.c.h +++ b/Backends/Graphics4/G4onG5/Sources/kinc/backend/graphics4/G4.c.h @@ -300,7 +300,6 @@ void kinc_g4_begin(int window) { for (int i = 0; i < bufferCount; ++i) { kinc_g5_render_target_destroy(&windows[current_window].framebuffers[i]); } - windows[current_window].currentBuffer = 0; } kinc_g5_begin(&windows[current_window].framebuffers[windows[current_window].currentBuffer], window);