Fix accidental graphics context member/parameter duplication

This commit is contained in:
Billy Laws 2022-05-12 22:12:26 +01:00
parent 7a6f27a19a
commit 3ad640fcbc

View File

@ -1213,7 +1213,7 @@ namespace skyline::gpu::interconnect {
if (tscIndexLinked)
handle.samplerIndex = handle.textureIndex;
auto sampler{GetSampler(handle.samplerIndex, tscIndexLinked)};
auto sampler{GetSampler(handle.samplerIndex)};
auto textureView{GetPoolTextureView(handle.textureIndex)};
std::scoped_lock lock(*textureView);
@ -2491,7 +2491,7 @@ namespace skyline::gpu::interconnect {
return vk::BorderColor::eFloatTransparentBlack;
}
std::shared_ptr<Sampler> GetSampler(u32 index, bool tscIndexLinked) {
std::shared_ptr<Sampler> GetSampler(u32 index) {
if (!samplerPool.samplerControls.valid()) {
auto mappings{channelCtx.asCtx->gmmu.TranslateRange(samplerPool.iova, (tscIndexLinked ? texturePool.maximumIndex : samplerPool.maximumIndex) * sizeof(TextureSamplerControl))};
if (mappings.size() != 1)