Remove r_swtruecolor variable as it is redundant

This commit is contained in:
Magnus Norddahl 2017-02-01 21:42:08 +01:00
commit 93166fa150
18 changed files with 49 additions and 69 deletions

View file

@ -175,7 +175,7 @@ namespace swrenderer
auto viewport = RenderViewport::Instance();
if (viewport->r_swtruecolor)
if (viewport->RenderTarget->IsBgra())
{
double distance2 = planeheight * yslope[(y + 1 < viewheight) ? y + 1 : y - 1];
double xmagnitude = fabs(ystepscale * (distance2 - distance) * viewport->FocalLengthX);