Is glDisableClientState required?

后端 未结 2 894
臣服心动
臣服心动 2021-01-21 23:53

Every example I\'ve come across for rendering array data is similar to the following code, in which in your drawing loop you first call glEnableClientState for what you will be

2条回答
  •  既然无缘
    2021-01-22 00:24

    Once you have set some OpenGL state, it remains set. You don't need to set it each time you draw.

    Manually setting the state as little as possible can be error-prone - this is probably why many people don't do it.

提交回复
热议问题