Fixed wrong comparison of maxTextureSize (#2718)
Co-authored-by: Fabiz <info@peakfinder.org>
This commit is contained in:
parent
e73aa1e0b3
commit
4a922e34da
@ -4580,8 +4580,8 @@ namespace bgfx
|
|||||||
);
|
);
|
||||||
|
|
||||||
BGFX_ERROR_CHECK(false
|
BGFX_ERROR_CHECK(false
|
||||||
|| _width < g_caps.limits.maxTextureSize
|
|| _width <= g_caps.limits.maxTextureSize
|
||||||
|| _height < g_caps.limits.maxTextureSize
|
|| _height <= g_caps.limits.maxTextureSize
|
||||||
, _err
|
, _err
|
||||||
, BGFX_ERROR_TEXTURE_VALIDATION
|
, BGFX_ERROR_TEXTURE_VALIDATION
|
||||||
, "Requested texture width/height is above the `maxTextureSize` limit."
|
, "Requested texture width/height is above the `maxTextureSize` limit."
|
||||||
|
Loading…
Reference in New Issue
Block a user