From e092c1758508f8f2da5f03a7e4e3093bb19d1ec5 Mon Sep 17 00:00:00 2001 From: Herman Semenov <GermanAizek@yandex.ru> Date: Fri, 5 Jul 2024 05:19:15 -0500 Subject: [PATCH] Added forgotten check texture info format and remove duplicate GMM_FORMAT_UYVY_2x1 --- Source/GmmLib/Texture/GmmTextureAlloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GmmLib/Texture/GmmTextureAlloc.cpp b/Source/GmmLib/Texture/GmmTextureAlloc.cpp index b471cf8..f53625c 100644 --- a/Source/GmmLib/Texture/GmmTextureAlloc.cpp +++ b/Source/GmmLib/Texture/GmmTextureAlloc.cpp @@ -560,7 +560,7 @@ GMM_STATUS GmmLib::GmmTextureCalc::FillTexPitchAndSize(GMM_TEXTURE_INFO * pTexIn uint8_t IsYUVSurface = ((GmmIsPlanar(pTexInfo->Format) && (!((pTexInfo->Format == GMM_FORMAT_BGRP) || (pTexInfo->Format == GMM_FORMAT_RGBP)))) || (GmmIsYUVPacked(pTexInfo->Format) && - !((pTexInfo->Format == GMM_FORMAT_YVYU_2x1) || (pTexInfo->Format == GMM_FORMAT_UYVY_2x1) || (pTexInfo->Format == GMM_FORMAT_UYVY_2x1)))); + !((pTexInfo->Format == GMM_FORMAT_YVYU_2x1) || (pTexInfo->Format == GMM_FORMAT_UYVY_2x1) || (pTexInfo->Format == GMM_FORMAT_VYUY_2x1)))); //YCRCB* formats uint8_t IsYCrCbSurface = ((pTexInfo->Format == GMM_FORMAT_YCRCB_NORMAL) ||