Browse Source

Fix isTextureValid number of layers check (#2639)

pezcode 4 years ago
parent
commit
9f3b3d38c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bgfx.cpp

+ 1 - 1
src/bgfx.cpp

@@ -4608,7 +4608,7 @@ namespace bgfx
 			);
 
 		BGFX_ERROR_CHECK(false
-			|| _numLayers < g_caps.limits.maxTextureLayers
+			|| _numLayers <= g_caps.limits.maxTextureLayers
 			, _err
 			, BGFX_ERROR_TEXTURE_VALIDATION
 			, "Requested number of texture array layers is above the `maxTextureLayers` limit."