1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Add fragmentHeaderCalcLight only if hw light is on.

This commit is contained in:
Sergey Lipskiy 2017-01-08 17:59:35 +07:00
parent 7af25b2452
commit 04ffc45023

View File

@ -1782,7 +1782,8 @@ graphics::CombinerProgram * CombinerProgramBuilder::buildCombinerProgram(Combine
m_fragmentHeaderDepthCompare->write(ssShader);
}
m_fragmentHeaderCalcLight->write(ssShader);
if (bUseHWLight)
m_fragmentHeaderCalcLight->write(ssShader);
/* Write body */
if (gDP.otherMode.cycleType == G_CYC_2CYCLE)