Remove obsolete code.
Support running without texture arrays.