minor refactoring

dirty flag for color buffer, unnecessary gl calls