Jon Smirl wrote:

Why do the drivers need to look this up instead of linking straight to
_gl_context_modes_create() in common?

      create_context_modes = (PFNGLXCREATECONTEXTMODES)
          glXGetProcAddress( (const GLubyte *) "__glXCreateContextModes" );

Direct linking would get rid of the last GLX reference in the drivers.

Because the driver passes the __GLcontextModes linked list back to libGL, and libGL accesses those datastuctures. By having libGL do the allocation and initialization of default values, we only have to version check one direction. That is, libGL doesn't care how old the driver is because it will set "new" fields in the __GLcontextModes structures to reasonable values.


There are still other places where the drivers use glXGetProcAddress. That one isn't going to go away. If I had it to do over again, I probably would have picked a different name for the GetProcAddress function used by the drivers. Probably __driGetProcAddress or something similar. At this point, I think it's a small enough issue that it's not worth the effort to change.




------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to