use unordered_dense to mitigate __next_prime overflow error

This commit is contained in:
2025-05-07 10:57:26 +08:00
parent 96774ef3da
commit b082e2e06b
9 changed files with 2142 additions and 34 deletions
@@ -45,8 +45,9 @@ public:
public: // TODO
std::unordered_map<GLuint, VertexArrayObject> vaos_;
std::set<GLuint> freeIds_;
GLuint lastId_ = 0;
// std::set<GLuint> freeIds_;
std::vector<GLuint> freeId_;
GLuint lastId_ = 1; // reserve 0 for default vao
GLuint currentVao_ = 0;
};