mirror of https://github.com/OpenMW/openmw.git
Ensure original (removed) state overrides replacement state when recreating shaders
When the shader visitor replaces state (e.g. changes the deprecated alpha test to a shader-based one) it backs up the original state. If shaders are recreated, we need to know what the canonical state was and create shaders to implement that instead of creating shaders to implement dummy replacement state. This was actually usually working as the removed state got checked after the active state, so overwrote anything derived from it. However, if the active state had the override bit set, that would make it override the removed state. Skipping any active state that duplicates removed state fixes this case. Resolves #6108dont-compose-content
parent
1f658209f8
commit
8a1b4bde8a
Loading…
Reference in New Issue