add support for primitive sizes with vertices > 65535
fix stupid bug in render for UI