- removed FHardwareTexture's mSampler member.

This was a mostly unused relic of early development, the few places using it were static sampler settings.
This commit is contained in:
Christoph Oelckers 2020-05-28 21:45:33 +02:00
parent f6ca5fa650
commit 362be65060
4 changed files with 4 additions and 10 deletions

View file

@ -103,10 +103,9 @@ void PaletteManager::BindPalette(int index)
auto p = GLInterface.NewTexture();
p->CreateTexture(256, 1, FHardwareTexture::TrueColor, false);
p->LoadTexture((uint8_t*)palettedata->Palette);
p->SetSampler(SamplerNoFilterClampXY);
palettetextures[index] = p;
}
inst->BindTexture(2, palettetextures[index]);
inst->BindTexture(2, palettetextures[index], SamplerNoFilterClampXY);
}
}
@ -141,10 +140,9 @@ void PaletteManager::BindPalswap(int index)
p[0] = 0;
}
p->LoadTexture(lookup.Data());
p->SetSampler(SamplerNoFilterClampXY);
palswaptextures[index] = p;
}
inst->BindTexture(1, palswaptextures[index]);
inst->BindTexture(1, palswaptextures[index], SamplerNoFilterClampXY);
inst->SetFadeColor(lookups.getFade(index));
}
}