mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Centralize handling of another GPU flag
This commit is contained in:
1 parent
d2f1193afc
commit
ebc564a465
11 files changed
+13
-19
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user