Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Video_Software: Fix the ZFreeze option doing nothing.
  • Loading branch information
neobrain committed Feb 15, 2013
1 parent 183ad0c commit fb0102d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
Expand Up @@ -369,7 +369,7 @@ void DrawTriangleFrontFace(OutputVertexData *v0, OutputVertexData *v1, OutputVer
float w[3] = { 1.0f / v0->projectedPosition.w, 1.0f / v1->projectedPosition.w, 1.0f / v2->projectedPosition.w };
InitSlope(&WSlope, w[0], w[1], w[2], fltdx31, fltdx12, fltdy12, fltdy31);

if (!bpmem.genMode.zfreeze)
if (!bpmem.genMode.zfreeze || !g_SWVideoConfig.bZFreeze)
InitSlope(&ZSlope, v0->screenPosition[2], v1->screenPosition[2], v2->screenPosition[2], fltdx31, fltdx12, fltdy12, fltdy31);

for(unsigned int i = 0; i < bpmem.genMode.numcolchans; i++)
Expand Down

0 comments on commit fb0102d

Please sign in to comment.