Fixed rendering to texture