Tests and fixes for FLAT and COLORED polygon rendering types.