// Attribute/vertex arrays. public void SetVertexAttrib(bool on) { if (activeProgram != null) { if (on) { activeProgram.EnableVertexAttribArrays(); } else { activeProgram.DisableVertexAttribArrays(); } } }
private void SetVertexAttrib(bool on) { if (vertexAttribOn == on) { return; } if (activeProgram != null) { if (on) { activeProgram.EnableVertexAttribArrays(); } else { activeProgram.DisableVertexAttribArrays(); } } vertexAttribOn = on; }