mirror of
https://github.com/Tinob/Ishiiruka.git
synced 2024-06-06 07:09:00 -04:00
fix for env texture search
This commit is contained in:
parent
fdf69281fc
commit
7b6f7a49ba
|
@ -554,6 +554,7 @@ void TextureCacheBase::SetupEnviromentTexture()
|
|||
currenthits = env_iter->second.last_frame_hits;
|
||||
current = env_iter->second.envtexture;
|
||||
}
|
||||
env_iter++;
|
||||
}
|
||||
bound_enviroment = current;
|
||||
}
|
||||
|
@ -588,8 +589,7 @@ void TextureCacheBase::LoadEnviromentTexture(std::string basename)
|
|||
u8* Bufferptr = TextureCacheBase::temp;
|
||||
for (size_t i = 0; i < 6; i++)
|
||||
{
|
||||
entry->texture->Load(Bufferptr, config.width, config.height, config.width, 0,
|
||||
currentlayer);
|
||||
entry->texture->Load(Bufferptr, config.width, config.height, config.width, 0, currentlayer);
|
||||
Bufferptr += TextureUtil::GetTextureSizeInBytes(config.width, config.height, config.pcformat);
|
||||
for (u32 level = 1; level != env_tex->m_levels; ++level)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue