Skip to content

Commit

Permalink
Fix for MSAA configuration on macOS (iOS?) (PixarAnimationStudios#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-janson-autodesk authored and GitHub Enterprise committed May 25, 2023
1 parent 43cc102 commit 666578a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pxr/imaging/hdSt/pipelineDrawBatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,9 +1315,6 @@ _GetPTCSPipeline(
if (pipelineInstance.IsFirstInstance()) {
HgiGraphicsPipelineDesc pipeDesc;

renderPassState->InitGraphicsPipelineDesc(&pipeDesc,
state.geometricShader);

pipeDesc.rasterizationState.rasterizerEnabled = false;
pipeDesc.multiSampleState.sampleCount = HgiSampleCount1;
pipeDesc.multiSampleState.alphaToCoverageEnable = false;
Expand All @@ -1326,6 +1323,9 @@ _GetPTCSPipeline(
pipeDesc.depthState.stencilTestEnabled = false;
pipeDesc.primitiveType = HgiPrimitiveTypePatchList;
pipeDesc.multiSampleState.multiSampleEnable = false;

renderPassState->InitGraphicsPipelineDesc(&pipeDesc,
state.geometricShader);

pipeDesc.shaderProgram = state.glslProgram->GetProgram();
pipeDesc.vertexBuffers = _GetVertexBuffersForDrawing(state);
Expand Down

0 comments on commit 666578a

Please sign in to comment.