mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
Fix particle glow transparency for textures without alpha
This commit is contained in:
parent
a2c049b00b
commit
630019aea9
3 changed files with 29 additions and 9 deletions
|
|
@ -360,8 +360,10 @@ private:
|
|||
GLuint id = 0;
|
||||
size_t approxBytes = 0;
|
||||
uint64_t lastUse = 0;
|
||||
bool hasAlpha = true;
|
||||
};
|
||||
std::unordered_map<std::string, TextureCacheEntry> textureCache;
|
||||
std::unordered_map<GLuint, bool> textureHasAlphaById_;
|
||||
size_t textureCacheBytes_ = 0;
|
||||
uint64_t textureCacheCounter_ = 0;
|
||||
size_t textureCacheBudgetBytes_ = 2048ull * 1024 * 1024; // Default, overridden at init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue