can't use const int MAX_VIEWPORTS = 16, but at least its not repeated any more