Render to texture now works as expected