Fixed wrong comparison of maxTextureSize (#2718)

Co-authored-by: Fabiz <info@peakfinder.org>
This commit is contained in:
Fabio Soldati 2022-01-30 17:14:19 +01:00 committed by GitHub
parent e73aa1e0b3
commit 4a922e34da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."