Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.
authorKristian Høgsberg <krh@hinata.boston.redhat.com>
Thu, 10 May 2007 21:14:38 +0000 (17:14 -0400)
committerKristian Høgsberg <krh@redhat.com>
Wed, 10 Oct 2007 21:07:26 +0000 (17:07 -0400)
commit4ff95e78e19e5902352ea3759d32d9f013255f42
tree772c6e1c9b384bb2a19e929db47c872145043524
parentb068af2f3b890bec26a186e9d0bdd3d44c17cd4d
Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.

All the DRI driver did was call the createDrawable callback immediately
upon entry to DRIscreen::createNewDrawable to get the drm_drawable_t.
We can just call that before calling into the DRI driver and pass the
returned drm_drawable_t as an argument to the DRI entry point.

Likewise for destroyDrawable.

Also, DRIdrawablePrivate::draw isn't used anywhere, and since the
driver no longer needs the XID of the drawable we can now drop that.
include/GL/internal/dri_interface.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
src/mesa/drivers/dri/mga/mgastate.c