From 4a922e34da35f9aefa474cd9a7dbfd014f805124 Mon Sep 17 00:00:00 2001 From: Fabio Soldati Date: Sun, 30 Jan 2022 17:14:19 +0100 Subject: [PATCH] Fixed wrong comparison of maxTextureSize (#2718) Co-authored-by: Fabiz --- src/bgfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 6c3535640..68b3d781f 100644 --- a/src/bgfx.cpp +++ b/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."