From f8fdc77e43b485e95ec2c10fdbaf767860d187fc Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Sun, 24 Sep 2023 12:48:37 -0400 Subject: [PATCH] Wrap CurGLCompositor cleanup in an #ifdef (#1837) --- src/GPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GPU.cpp b/src/GPU.cpp index 8cb8d737..07748beb 100644 --- a/src/GPU.cpp +++ b/src/GPU.cpp @@ -177,7 +177,9 @@ void DeInit() Framebuffer[1][0] = nullptr; Framebuffer[1][1] = nullptr; +#ifdef OGLRENDERER_ENABLED CurGLCompositor = nullptr; +#endif } void ResetVRAMCache()