change this

This commit is contained in:
Alug committed 2024-01-22 18:32:13 +01:00
1 parent 739e9716ab
commit 0e517907ce
1 file changed
+3 -4
+3 -4
View File
@@ -185,10 +185,9 @@ void HWR_ProcessPolygon(FSurfaceInfo *pSurf, FOutVector *pOutVerts, FUINT iNumPt
}
else
{
if (shader_target != -1)
HWD.pfnSetShader(HWR_GetShaderFromTarget(shader_target));
HWD.pfnDrawPolygon(pSurf, pOutVerts, iNumPts, PolyFlags);
}
HWD.pfnSetShader((shader_target != SHADER_NONE) ? HWR_GetShaderFromTarget(shader_target) : shader_target);
HWD.pfnDrawPolygon(pSurf, pOutVerts, iNumPts, PolyFlags);
}
}
static int compareDrawCalls(const void *p1, const void *p2)