mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-19 19:28:02 +00:00
texture_cache: Pass TIC to texture cache
This commit is contained in:
parent
9fb31b1b23
commit
67be7aff62
4 changed files with 25 additions and 27 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue