mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Set tmu when init hires texture.
Fixed: Zelda: OoT Texture Pack flickers before day/night transition #1470
This commit is contained in:
parent
f75dd4ea9d
commit
dd4fac7230
|
@ -957,6 +957,7 @@ bool TextureCache::_loadHiresTexture(u32 _tile, CachedTexture *_pTexture, u64 &
|
|||
params.format = ColorFormatParam(ghqTexInfo.texture_format);
|
||||
params.dataType = DatatypeParam(ghqTexInfo.pixel_type);
|
||||
params.data = ghqTexInfo.data;
|
||||
params.textureUnitIndex = textureIndices::Tex[_tile];
|
||||
gfxContext.init2DTexture(params);
|
||||
assert(!gfxContext.isError());
|
||||
_updateCachedTexture(ghqTexInfo, _pTexture, f32(ghqTexInfo.width) / f32(width));
|
||||
|
|
Loading…
Reference in New Issue
Block a user