changed behavior of replacing color attachments, avoids GL_NONE on attachment 0 (would trigger a mac bug)