From 27a75401302edb86e11130964e1b09289b845973 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 19 Nov 2015 19:12:31 +0600 Subject: [PATCH] Add bHDTexture flag to CachedTexture structure. --- src/Textures.cpp | 1 + src/Textures.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Textures.cpp b/src/Textures.cpp index 1f67d2a4..5af07062 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -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); diff --git a/src/Textures.h b/src/Textures.h index 621c8b88..9bd95588 100644 --- a/src/Textures.h +++ b/src/Textures.h @@ -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; };