mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 05:23:00 +01:00
Fixed wrong comparison of maxTextureSize (#2718)
Co-authored-by: Fabiz <info@peakfinder.org>
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user