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

Disagle hw lighting for Rects.

This commit is contained in:
Sergey Lipskiy 2017-02-01 14:51:22 +07:00
parent dbb827efc1
commit c2b3fc13eb

View File

@ -1760,8 +1760,10 @@ graphics::CombinerProgram * CombinerProgramBuilder::buildCombinerProgram(Combine
const bool bUseLod = combinerInputs.usesLOD();
const bool bUseTextures = combinerInputs.usesTexture();
const bool bUseHWLight =
config.generalEmulation.enableHWLighting != 0 && GBI.isHWLSupported() && combinerInputs.usesShadeColor();
const bool bUseHWLight = g_cycleType <= G_CYC_2CYCLE && // Rects not use lighting
config.generalEmulation.enableHWLighting != 0 &&
GBI.isHWLSupported() &&
combinerInputs.usesShadeColor();
if (bUseHWLight)
combinerInputs.addInput(G_GCI_HW_LIGHT);