CSharpGL.OneIndexRenderer.NoPrimitiveRestartIndex C# (CSharp) Method

NoPrimitiveRestartIndex() private method

private NoPrimitiveRestartIndex ( List primitiveInfoList ) : void
primitiveInfoList List
return void
        private void NoPrimitiveRestartIndex(List<RecognizedPrimitiveInfo> primitiveInfoList)
        {
            PrimitiveRestartState glState = GetPrimitiveRestartState();
            if (glState != null)
            {
                foreach (RecognizedPrimitiveInfo info in primitiveInfoList)
                {
                    foreach (uint vertexId in info.VertexIds)
                    {
                        if (vertexId == glState.RestartIndex) { throw new Exception(); }
                    }
                }
            }
        }