mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix creature flame alpha-key rendering and emissive flicker
This commit is contained in:
parent
8d4d9b7169
commit
dddd2a71ca
2 changed files with 129 additions and 5 deletions
|
|
@ -248,8 +248,12 @@ private:
|
|||
GLuint id = 0;
|
||||
size_t approxBytes = 0;
|
||||
uint64_t lastUse = 0;
|
||||
bool hasAlpha = false;
|
||||
bool colorKeyBlack = false;
|
||||
};
|
||||
std::unordered_map<std::string, TextureCacheEntry> textureCache;
|
||||
std::unordered_map<GLuint, bool> textureHasAlphaById_;
|
||||
std::unordered_map<GLuint, bool> textureColorKeyBlackById_;
|
||||
std::unordered_map<std::string, GLuint> compositeCache_; // key → GPU texture for reuse
|
||||
std::unordered_set<std::string> failedTextureCache_; // negative cache for missing textures
|
||||
size_t textureCacheBytes_ = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue