mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix textures size calculation method when tile loaded via LoadTile.
This commit is contained in:
parent
18da87e86d
commit
e8a9832861
|
@ -11,8 +11,6 @@
|
|||
#include "convert.h"
|
||||
#include "FrameBuffer.h"
|
||||
#include "Config.h"
|
||||
#include "Combiner.h"
|
||||
#include "GLSLCombiner.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -860,7 +858,7 @@ void TextureCache::update(u32 _t)
|
|||
u16 texRectWidth = gDP.texRect.width - gSP.textureTile[_t]->uls;
|
||||
u16 texRectHeight = gDP.texRect.height - gSP.textureTile[_t]->ult;
|
||||
const bool bUseLoadSizes = gDP.loadTile->loadType == LOADTYPE_TILE &&
|
||||
(gSP.textureTile[_t]->format == gDP.loadTile->format || !(currentCombiner()->usesT0() && currentCombiner()->usesT1()));
|
||||
(gSP.textureTile[_t]->tmem == gDP.loadTile->tmem);
|
||||
|
||||
if (gSP.textureTile[_t]->masks && ((maskWidth * maskHeight) <= maxTexels))
|
||||
width = maskWidth;
|
||||
|
|
Loading…
Reference in New Issue
Block a user