Am Dienstag, 8. April 2008 00:35:14 schrieb Alexander Dorofeyev:
On the other hand, it is pretty tricky. Also Stefan believes adding isInDraw checks everywhere isn't especially nice, but ultimately to prevent all situations of ActivateContext inside ENTER_GL/LEAVE_GL with isInDraw approach this would've to be added in more places. I'm not sure about this myself, perhaps I'll better not hurry with it and some better ideas may come.
The original idea of this flag was to mark that the stateblock is finalized. It was never intended to give information about the opengl state(which this patches are doing), so if we're doing that we have to work out some ruleset about it.