commit | 416ee5042f9c192344650cf90d16594007dc72e1 | [log] [tgz] |
---|---|---|
author | John Machado <john.machado@intel.com> | Fri Oct 21 19:13:09 2022 +0530 |
committer | GitHub <noreply@github.com> | Fri Oct 21 19:13:09 2022 +0530 |
tree | 1e0c2bc6a4ac47f5f510c4c0f594e144b3f48cdc | |
parent | 39e4d2e281db16c96debf15f18be0c755c3762c3 [diff] |
Assert if Tilemode exceeds maximum index
diff --git a/Source/GmmLib/Texture/GmmTexture.cpp b/Source/GmmLib/Texture/GmmTexture.cpp index a49b062..28586fb 100644 --- a/Source/GmmLib/Texture/GmmTexture.cpp +++ b/Source/GmmLib/Texture/GmmTexture.cpp
@@ -479,6 +479,8 @@ MipHeight = GFX_CEIL_DIV(MipHeight, CompressHeight); MipDepth = GFX_CEIL_DIV(MipDepth, CompressDepth); } + + __GMM_ASSERT(pTexInfo->TileMode < GMM_TILE_MODES); while((Level < pTexInfo->MaxLod) && (((pTexInfo->Type == RESOURCE_1D) &&