Remove redundant span drawer args
This commit is contained in:
parent
0af86efb17
commit
fd459b1f13
7 changed files with 26 additions and 60 deletions
|
|
@ -1390,9 +1390,9 @@ void DCanvas::FillSimplePoly(FTexture *tex, FVector2 *points, int npoints,
|
|||
SpanDrawerArgs drawerargs;
|
||||
drawerargs.SetSpanTexture(tex);
|
||||
if (colormap)
|
||||
drawerargs.SetSpanColormap(colormap, clamp(shade >> FRACBITS, 0, NUMCOLORMAPS - 1));
|
||||
drawerargs.SetColorMapLight(colormap, 0, clamp(shade >> FRACBITS, 0, NUMCOLORMAPS - 1));
|
||||
else
|
||||
drawerargs.SetSpanColormap(&identitycolormap, 0);
|
||||
drawerargs.SetColorMapLight(&identitycolormap, 0, 0);
|
||||
if (drawerargs.ds_xbits != 0)
|
||||
{
|
||||
scalex = double(1u << (32 - drawerargs.ds_xbits)) / scalex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue