Move software renderer into its own namespace to isolate its globals and make
any access explicit. This reveals the places in the code where they are being accessed where they shouldn't and prevents accidental usage.
This commit is contained in:
parent
1bed6feadc
commit
9416d436fe
37 changed files with 231 additions and 157 deletions
|
|
@ -85,7 +85,7 @@ void PolySkyDome::RenderRow(PolyDrawArgs &args, int row)
|
|||
void PolySkyDome::RenderCapColorRow(PolyDrawArgs &args, FTexture *skytex, int row, bool bottomCap)
|
||||
{
|
||||
uint32_t solid = skytex->GetSkyCapColor(bottomCap);
|
||||
if (!r_swtruecolor)
|
||||
if (!swrenderer::r_swtruecolor)
|
||||
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