On Tue, Nov 19, 2002 at 10:55:12AM -0700, Brian Paul wrote:
> Ian Romanick wrote:
> > On Tue, Nov 19, 2002 at 08:35:45AM -0700, Brian Paul wrote:
> >>Well, there isn't an official query like this, but there is the
> >>_glapi_get_version() function which returns the version of the dispatcher
> >>code.  See the top of glapi.c for the version history.
> > 
> > 
> > This seems a little hinkey to me.  If I'm adding new data structures or
> > dispatch functions to, for example, __DRIcontext or __DRIdrawable, I need to
> > bump a version in a file that comes from extras/Mesa/src?  That just seems
> > weird and potentially problematic to me. :)
> 
> Right.  It's not the real solution to your problem.  But it's the only
> thing remotely similar to what you need.
> 
> Perhaps we should add a new internal function to libGL to help with this
> in the future.

Would something like:

const char * GLX_PREFIX(glXGetInternalAPIVersion)(void);

in lib/GL/glx/glxcmd.c be acceptable?  It would return a date string like
_glapi_get_version.  Then a driver would have to do the same dlsym trick
that is done in __driRegisterExtensions in r200_screen.c to get the version.
I could add a wrapper for that in common/utils.c (in the texmem branch).

-- 
Smile!  http://antwrp.gsfc.nasa.gov/apod/ap990315.html


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to