Fixed crash when program doesn't have fragment shader.

This commit is contained in:
Branimir Karadžić
2021-02-25 19:00:54 -08:00
parent d25c14e52f
commit befe56f947

View File

@@ -7188,10 +7188,13 @@ VK_DESTROY
commit(*vcb);
}
UniformBuffer* fcb = program.m_fsh->m_constantBuffer;
if (NULL != fcb)
if (NULL != program.m_fsh)
{
commit(*fcb);
UniformBuffer* fcb = program.m_fsh->m_constantBuffer;
if (NULL != fcb)
{
commit(*fcb);
}
}
hasPredefined = 0 < program.m_numPredefined;