Changed implementation of getMaxColorBuffers()