We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca306e4 commit 761f59eCopy full SHA for 761f59e
Client/core/Graphics/CGraphics.cpp
@@ -891,6 +891,12 @@ void CGraphics::DrawMaterialPrimitiveQueued(std::vector<PrimitiveMaterialVertice
891
vert.fY = m_pAspectRatioConverter->ConvertPositionForAspectRatio(vert.fY);
892
}
893
894
+ if (CShaderItem* pShaderItem = DynamicCast<CShaderItem>(pMaterial))
895
+ {
896
+ // If material is a shader, use its current instance
897
+ pMaterial = pShaderItem->m_pShaderInstance;
898
+ }
899
+
900
// Set up a queue item
901
sDrawQueueItem Item;
902
Item.eType = QUEUE_PRIMITIVEMATERIAL;
0 commit comments