texture_cache: Pass TIC to texture cache

This commit is contained in:
ReinUsesLisp
2019-07-11 21:59:59 -03:00
parent 3a450c1395
commit 2424eefad2
4 changed files with 25 additions and 27 deletions

View File

@ -1022,7 +1022,7 @@ bool RasterizerOpenGL::SetupTexture(const Shader& shader, u32 binding,
auto& unit{state.texture_units[binding]};
unit.sampler = sampler_cache.GetSampler(texture.tsc);
const auto view = texture_cache.GetTextureSurface(texture, entry);
const auto view = texture_cache.GetImageSurface(texture.tic, entry);
if (!view) {
// Can occur when texture addr is null or its memory is unmapped/invalid
unit.texture = 0;