Made shared/coreshader.mas more tolerant