Disable mipmapping when texture scaling enabled

Fix issue #2891