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
|
|
@ -94,7 +94,7 @@ void PolySkyDome::RenderRow(PolyDrawArgs &args, int row, uint32_t capcolor)
|
|||
void PolySkyDome::RenderCapColorRow(PolyDrawArgs &args, FTexture *skytex, int row, bool bottomCap)
|
||||
{
|
||||
uint32_t solid = skytex->GetSkyCapColor(bottomCap);
|
||||
if (!swrenderer::RenderViewport::Instance()->r_swtruecolor)
|
||||
if (!swrenderer::RenderViewport::Instance()->RenderTarget->IsBgra())
|
||||
solid = RGB32k.RGB[(RPART(solid) >> 3)][(GPART(solid) >> 3)][(BPART(solid) >> 3)];
|
||||
|
||||
args.vinput = &mVertices[mPrimStart[row]];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue