Fix particle glow transparency for textures without alpha

This commit is contained in:
Kelsi 2026-02-14 22:32:12 -08:00
parent a2c049b00b
commit 630019aea9
3 changed files with 29 additions and 9 deletions

View file

@ -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