Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
colincornaby and Hoikas authored Dec 1, 2023
1 parent b755ebd commit 6002030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Plasma/FeatureLib/pfMetalPipeline/plMetalPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ void plMetalPipeline::IRenderBufferSpan(const plIcicle& span, hsGDeviceRef* vb,

/* Index Buffer stuff and drawing */

plRenderTriListFunc render(&fDevice, 0, vStart, vLength, iStart, iLength/3);
plRenderTriListFunc render(&fDevice, 0, vStart, vLength, iStart, iLength / 3);

plProfile_EndTiming(RenderBuff);

Expand Down Expand Up @@ -1478,7 +1478,7 @@ void plMetalPipeline::IRenderAuxSpan(const plSpan& span, const plAuxSpan* aux)
fState.fCurrentVertexBuffer = vRef->GetBuffer();
fDevice.fCurrentIndexBuffer = iRef->GetBuffer();

plRenderTriListFunc render(&fDevice, 0, aux->fVStartIdx, aux->fVLength, aux->fIStartIdx, aux->fILength/3);
plRenderTriListFunc render(&fDevice, 0, aux->fVStartIdx, aux->fVLength, aux->fIStartIdx, aux->fILength / 3);

for (int32_t pass = 0; pass < mRef->GetNumPasses(); pass++) {
IHandleMaterialPass(material, pass, &span, vRef);
Expand Down Expand Up @@ -3707,7 +3707,7 @@ void plMetalPipeline::IRenderShadowCasterSpan(plShadowSlave* slave, plDrawableSp
uint32_t iStart = span.fIPackedIdx;
uint32_t iLength = span.fILength;

plRenderTriListFunc render(&fDevice, 0, vStart, vLength, iStart, iLength/3);
plRenderTriListFunc render(&fDevice, 0, vStart, vLength, iStart, iLength / 3);

static hsMatrix44 emptyMatrix;
hsMatrix44 m = emptyMatrix;
Expand Down

0 comments on commit 6002030

Please sign in to comment.