Thomas Roell writes:

 > foo_2() {
 >      (*rect)(0.0, 0.0, 1.0, 1.0);
 > }

If you just change rect every time you change the current
context, you should be fine? Context switching is expensive,
so assigning cached pointers from a per-context LUT to the
global variable (better than (*(current->rect))) should
be doable?

 > The key difference between GetProcAddress and all other OpenGL
 > functions is, that it really returns a pointer to a function. It looks
 > more like glXMakeCurrent(), as it does not really belong into the API
 > itself.

Yeah. Plus char*, plus recursion, plus getting pointers 
without making a context current... I am sure Brian has good
reasons for wanting this in GL not GLX/WGL, but I am still
not seeing why. Maybe should re-read the backlog.

                                       b.

Reply via email to