fix RenderTexture stage flipping