IOhannes m zmoelnig escribió:
it saves the texture, modelview and color matrix stack (the latter obviously not being the "color"). i wonder why it's not saving the projection matrix stack as well.
Great, thank you
i suggest to create a wee little abstraction "myseparator", which looks like:
Oh yes! Should have thought about it :$
the reason why the color is not stored and restored is simply performance. it's way faster to just set the color again than query it from the current openGL state (and color is a vertex based attribute; but this is really getting internal)
Good to know that!
Thanks again m.