Why is colorAttachment an integer? It should either be a RenderBuffer or a Texture2D.