Merge R_SetupSpanBits with R_SetSpanSource and rename it to R_SetSpanTexture

This commit is contained in:
Magnus Norddahl 2016-12-27 07:30:29 +01:00
commit 5a7765910f
4 changed files with 7 additions and 15 deletions

View file

@ -1379,12 +1379,11 @@ void DCanvas::FillSimplePoly(FTexture *tex, FVector2 *points, int npoints,
sinrot = sin(rotation.Radians());
// Setup constant texture mapping parameters.
R_SetupSpanBits(tex);
R_SetSpanTexture(tex);
if (colormap)
R_SetSpanColormap(colormap, clamp(shade >> FRACBITS, 0, NUMCOLORMAPS - 1));
else
R_SetSpanColormap(&identitycolormap, 0);
R_SetSpanSource(tex);
if (ds_xbits != 0)
{
scalex = double(1u << (32 - ds_xbits)) / scalex;