Ensure original (removed) state overrides replacement state when recreating shaders
Closes#6108
See merge request OpenMW/openmw!966
(cherry picked from commit 07a7a903a7a034b661adc1b033af928a9cd68528)
8a1b4bde Ensure original (removed) state overrides replacement state when recreating shaders
0e122b1e Avoid copy and deep equality check
2147c18c Do not overwrite old removed state with old dummy state