1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Add bHDTexture flag to CachedTexture structure.

This commit is contained in:
Sergey Lipskiy 2015-11-19 19:12:31 +06:00
parent 30abd96f5b
commit 27a7540130
2 changed files with 3 additions and 1 deletions

View File

@ -688,6 +688,7 @@ void _updateCachedTexture(const GHQTexInfo & _info, CachedTexture *_pTexture)
}
_pTexture->realWidth = _info.width;
_pTexture->realHeight = _info.height;
_pTexture->bHDTexture = true;
/*
_pTexture->scaleS = 1.0f / (f32)(_pTexture->realWidth);
_pTexture->scaleT = 1.0f / (f32)(_pTexture->realHeight);

View File

@ -14,7 +14,7 @@ typedef u32 (*GetTexelFunc)( u64 *src, u16 x, u16 i, u8 palette );
struct CachedTexture
{
CachedTexture(GLuint _glName) : glName(_glName), max_level(0), frameBufferTexture(fbNone) {}
CachedTexture(GLuint _glName) : glName(_glName), max_level(0), frameBufferTexture(fbNone), bHDTexture(false) {}
GLuint glName;
u32 crc;
@ -44,6 +44,7 @@ struct CachedTexture
fbOneSample = 1,
fbMultiSample = 2
} frameBufferTexture;
bool bHDTexture;
};