On 11/09/06, Stefan Dösinger stefandoesinger@gmx.at wrote:
- Keep a list of dirty states for each gl context in use: We don't need
something as fancy as trees for that, a little array can do the job, like this(example for render states, but can be used for all other stuff too):
You would at least need to use a proper list. Consider an application that sets the same state multiple times. Note that what you're proposing is pretty similar (in basis) to the way we currently handle shader constants loading.