Using correct shader for support of textures and corrected issue of texture being released prematurely.