From c955ce43804c04b392ea1888f827760f5776f644 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 15 Feb 2021 15:58:06 -0800 Subject: [PATCH] Remove making new GraphicsResources object in reloadresources() This is a very complicated way of zeroing out grphx (instead of using SDL_zero()), which itself is completely unnecessary because grphx.init() gets called immediately afterwards anyway. --- desktop_version/src/Graphics.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 422ec395..b42fd8ef 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -3148,7 +3148,6 @@ bool Graphics::onscreen(int t) void Graphics::reloadresources() { grphx.destroy(); - grphx = GraphicsResources(); grphx.init(); #define CLEAR_ARRAY(name) \