Revert "use unordered_dense to mitigate __next_prime overflow error"

This reverts commit b082e2e06b.
This commit is contained in:
BZLZHH
2025-05-17 11:13:19 +08:00
parent c848255b43
commit 9297542dcf
9 changed files with 34 additions and 2142 deletions
+7 -10
View File
@@ -8,9 +8,6 @@
#include "../../Includes.h"
namespace MG_RHI::GLES {
template <typename K, typename V>
using unordered_map = ankerl::unordered_dense::map<K, V>;
enum class State {
None,
DrawArrays,
@@ -33,14 +30,14 @@ namespace MG_RHI::GLES {
private:
State currentState_ = State::None;
unordered_map<GLuint, GLuint> textureMap_;
unordered_map<GLuint, GLuint> bufferMap_;
unordered_map<GLuint, GLuint> vaoMap_;
unordered_map<GLuint, GLuint> programMap_;
unordered_map<GLuint, GLuint> framebufferMap_;
unordered_map<GLuint, unordered_map<GLint, bool>> textureLevelUploaded_;
std::unordered_map<GLuint, GLuint> textureMap_;
std::unordered_map<GLuint, std::unordered_map<GLint, bool>> textureLevelUploaded_;
std::unordered_map<GLuint, GLuint> bufferMap_;
std::array<GLuint, 32> lastBoundTextures { 0 };
std::unordered_map<GLuint, GLuint> vaoMap_;
std::unordered_map<GLuint, GLuint> programMap_;
std::unordered_map<GLuint, GLuint> framebufferMap_;
GLuint lastBoundVAO = 0;
GLuint lastBoundProgram = 0;