Refactor material system (#382)

This commit is contained in:
Jérôme Leclercq
2022-10-31 19:53:41 +01:00
committed by GitHub
parent 0a8048809c
commit dc6ce8427c
156 changed files with 3633 additions and 4569 deletions

View File

@@ -111,10 +111,10 @@ namespace Nz::GL
inline void Context::ResetColorWriteMasks() const
{
if (!m_state.renderStates.colorWrite)
if (m_state.renderStates.colorWriteMask != ColorComponentAll)
{
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
m_state.renderStates.colorWrite = true;
m_state.renderStates.colorWriteMask = ColorComponentAll;
}
}