Clear the shader ids when clearing the cache

Hit this while mashing F2.  I don't know this code much, but I crashed on `lastShader->dirtyUniforms |= globalDirty;` so it seems right to clear those here.

-[Unknown]