Fix mesh renderer to work when not all attribs exist on mesh
Change var name for setGLState, apparently 'enum' is a reserved word