Просмотр исходного кода

Fixed wrong comparison of maxTextureSize (#2718)

Co-authored-by: Fabiz <[email protected]>
Fabio Soldati 3 лет назад
Родитель
Сommit
4a922e34da
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/bgfx.cpp

+ 2 - 2
src/bgfx.cpp

@@ -4580,8 +4580,8 @@ namespace bgfx
 			);
 
 		BGFX_ERROR_CHECK(false
-			|| _width  < g_caps.limits.maxTextureSize
-			|| _height < g_caps.limits.maxTextureSize
+			|| _width  <= g_caps.limits.maxTextureSize
+			|| _height <= g_caps.limits.maxTextureSize
 			, _err
 			, BGFX_ERROR_TEXTURE_VALIDATION
 			, "Requested texture width/height is above the `maxTextureSize` limit."