Drop createContext and destroyContext from DRIinterfaceMethods.
authorKristian Høgsberg <krh@hinata.boston.redhat.com>
Thu, 10 May 2007 22:38:49 +0000 (18:38 -0400)
committerKristian Høgsberg <krh@redhat.com>
Wed, 10 Oct 2007 21:09:16 +0000 (17:09 -0400)
commit8ed5c7ca0572a09375bdfd411c3804456dac78d6
tree79a5fc7225b5d1be313bc99599ea7a51a4e8f7c3
parent4ff95e78e19e5902352ea3759d32d9f013255f42
Drop createContext and destroyContext from DRIinterfaceMethods.

As for createDrawable and destroyDrawable, these functions immediately
upon entry to driCreateNewContext and immediately before exit from
driDestroyContext.  Instead of passing function pointers back and forth
just obtain the drm_context_t prior to calling DRIscreen::createNewContext
and pass it as a parameter.

This change also lets us keep the DRI context XID in the libGL loader only.
include/GL/internal/dri_interface.h
src/glx/x11/glxclient.h
src/glx/x11/glxcmds.c
src/glx/x11/glxext.c
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/dri_util.h