1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 19:59:55 +00:00
openmw/components/shader
AnyOldName3 8a1b4bde8a 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 #6108
2021-06-27 00:12:07 +01:00
..
removedalphafunc.cpp Set correct array size 2020-12-18 01:44:46 +00:00
removedalphafunc.hpp Set correct array size 2020-12-18 01:44:46 +00:00
shadermanager.cpp Add a ton of const refs 2021-06-23 23:13:59 +02:00
shadermanager.hpp Rewrite, support different lighting methods 2021-04-13 11:09:19 -07:00
shadervisitor.cpp Ensure original (removed) state overrides replacement state when recreating shaders 2021-06-27 00:12:07 +01:00
shadervisitor.hpp Use default instead of empty constructors/destructors 2021-06-24 00:26:15 +02:00