Fix inverted if condition.

This caused the engine to allocate a too small VBO and thus resulted
in low FPS or even crashed the game.