Jan
02-02-2003, 12:35 AM
I know that it is evil to enable and disable states a lot of times.
However if i, for example, donīt know wether the depth test is enabled, and i enable it a lot of times, although it has never been disabled, is this bad for performance ?
I would think that OpenGL first checks, if a state is already en-/disabled, but if not, i would have to do this.
Maybe you think itīs a stupid question, but i want to be certain about this.
Jan.
However if i, for example, donīt know wether the depth test is enabled, and i enable it a lot of times, although it has never been disabled, is this bad for performance ?
I would think that OpenGL first checks, if a state is already en-/disabled, but if not, i would have to do this.
Maybe you think itīs a stupid question, but i want to be certain about this.
Jan.