From c17e3da59b95351fd54fbae2acd065f6a0c908ed Mon Sep 17 00:00:00 2001 From: Jeffrey Crowell Date: Wed, 1 Jun 2022 15:05:23 -0400 Subject: [PATCH] use an std::map instead of a giant array --- libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp index b7de306a6..0a8c70181 100644 --- a/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp +++ b/libultraship/libultraship/Lib/Fast3D/gfx_opengl.cpp @@ -74,7 +74,7 @@ struct GLTexture { bool filter; }; -static struct GLTexture opengl_tex[0x1000000]; +static std::map opengl_tex; static GLint opengl_curtex = 0; static map, struct ShaderProgram> shader_program_pool;