Browse Source

Fixed init num encoders check logic. Issue #1535.

Branimir Karadžić 7 years ago
parent
commit
f477830b1d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bgfx.cpp

+ 2 - 2
src/bgfx.cpp

@@ -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;