mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Add bHDTexture flag to CachedTexture structure.
This commit is contained in:
parent
30abd96f5b
commit
27a7540130
|
@ -688,6 +688,7 @@ void _updateCachedTexture(const GHQTexInfo & _info, CachedTexture *_pTexture)
|
||||||
}
|
}
|
||||||
_pTexture->realWidth = _info.width;
|
_pTexture->realWidth = _info.width;
|
||||||
_pTexture->realHeight = _info.height;
|
_pTexture->realHeight = _info.height;
|
||||||
|
_pTexture->bHDTexture = true;
|
||||||
/*
|
/*
|
||||||
_pTexture->scaleS = 1.0f / (f32)(_pTexture->realWidth);
|
_pTexture->scaleS = 1.0f / (f32)(_pTexture->realWidth);
|
||||||
_pTexture->scaleT = 1.0f / (f32)(_pTexture->realHeight);
|
_pTexture->scaleT = 1.0f / (f32)(_pTexture->realHeight);
|
||||||
|
|
|
@ -14,7 +14,7 @@ typedef u32 (*GetTexelFunc)( u64 *src, u16 x, u16 i, u8 palette );
|
||||||
|
|
||||||
struct CachedTexture
|
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;
|
GLuint glName;
|
||||||
u32 crc;
|
u32 crc;
|
||||||
|
@ -44,6 +44,7 @@ struct CachedTexture
|
||||||
fbOneSample = 1,
|
fbOneSample = 1,
|
||||||
fbMultiSample = 2
|
fbMultiSample = 2
|
||||||
} frameBufferTexture;
|
} frameBufferTexture;
|
||||||
|
bool bHDTexture;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user