RTT: make safer against texture cration failuress