fixed MDL0 invalid texture lookups and RGBA8 texture support