rendered paste bodyHRESULT APIENTRY hkIDirect3DDevice8::DrawIndexedPrimitive(D3DPRIMITIVETYPE PrimitiveType,UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) {
if (bChams) {
m_pD3Ddev->SetRenderState(D3DRS_LIGHTING, FALSE);
m_pD3Ddev->SetTexture(0, texPurple);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetTexture(0, texGreen);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
}
return m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
}