From 7562fcd6d7e14150b5a3580defceb40b51713a3b Mon Sep 17 00:00:00 2001 From: enen92 <92enen@gmail.com> Date: Thu, 11 Jul 2024 22:14:43 +0100 Subject: [Texture] Fix NPOT condition --- xbmc/guilib/TextureBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/guilib/TextureBase.cpp b/xbmc/guilib/TextureBase.cpp index 63c510ff94..a8ce9a91e1 100644 --- a/xbmc/guilib/TextureBase.cpp +++ b/xbmc/guilib/TextureBase.cpp @@ -32,7 +32,7 @@ void CTextureBase::Allocate(uint32_t width, uint32_t height, XB_FMT format) m_textureWidth = m_imageWidth; m_textureHeight = m_imageHeight; - if (!CServiceBroker::GetRenderSystem()->SupportsNPOT((m_textureFormat & KD_TEX_FMT_TYPE_MASK) != + if (!CServiceBroker::GetRenderSystem()->SupportsNPOT((m_textureFormat & KD_TEX_FMT_TYPE_MASK) == KD_TEX_FMT_S3TC)) { m_textureWidth = PadPow2(m_textureWidth); -- cgit v1.2.3