Centralize handling of another GPU flag

This commit is contained in:
Henrik Rydgård committed 2026-06-27 13:50:03 +02:00
1 parent d2f1193afc
commit ebc564a465
11 files changed
+13 -19

No files matched your search

+2 -2
View File
@@ -94,7 +94,7 @@ static constexpr GLuint MagFiltGL[2] = {
};
void TextureCacheGLES::ApplySamplingParams(const SamplerCacheKey &key) {
if (gstate_c.Use(GPU_USE_TEXTURE_LOD_CONTROL)) {
if (gstate_c.Use(GPU_USE_SAMPLER_LOD_CONTROL)) {
float minLod = (float)key.minLevel / 256.0f;
float maxLod = (float)key.maxLevel / 256.0f;
float lodBias = (float)key.lodBias / 256.0f;
@@ -264,7 +264,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry) {
}
}
if (!gstate_c.Use(GPU_USE_TEXTURE_LOD_CONTROL)) {
if (!gstate_c.Use(GPU_USE_SAMPLER_LOD_CONTROL)) {
// If the mip chain is not full..
if (plan.levelsToCreate != plan.maxPossibleLevels) {
// We need to avoid creating mips at all, or generate them all - can't be incomplete