Fixed init num encoders check logic. Issue #1535.
This commit is contained in:
parent
7b8d5314d2
commit
f477830b1d
@ -3112,8 +3112,8 @@ namespace bgfx
|
||||
return false;
|
||||
}
|
||||
|
||||
if (1 >= _init.limits.maxEncoders
|
||||
&& 128 <= _init.limits.maxEncoders)
|
||||
if (1 > _init.limits.maxEncoders
|
||||
|| 128 < _init.limits.maxEncoders)
|
||||
{
|
||||
BX_TRACE("init.limits.maxEncoders must be between 1 and 128.");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user