use an std::map instead of a giant array

This commit is contained in:
Jeffrey Crowell 2022-06-01 15:05:23 -04:00
commit c17e3da59b

View file

@ -74,7 +74,7 @@ struct GLTexture {
bool filter; bool filter;
}; };
static struct GLTexture opengl_tex[0x1000000]; static std::map<int, GLTexture> opengl_tex;
static GLint opengl_curtex = 0; static GLint opengl_curtex = 0;
static map<pair<uint64_t, uint32_t>, struct ShaderProgram> shader_program_pool; static map<pair<uint64_t, uint32_t>, struct ShaderProgram> shader_program_pool;