Fixed bug with render to texture