Remove r_swtruecolor variable as it is redundant
This commit is contained in:
parent
e78e76a593
commit
93166fa150
18 changed files with 49 additions and 69 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue