Some ground work for rendering to texture done