[MP] Fix detail shader code for dedicated for comformity.
[SP] Fix detail shader code so that r_detailTextures works properly.  Merged from MP vanilla.