handling orientation changes and purging shader cache upon surface created