OSDN Git Service

Convert all DRI entrypoints to take pointers to __DRI* types.
authorKristian Høgsberg <krh@hinata.boston.redhat.com>
Fri, 11 May 2007 20:43:20 +0000 (16:43 -0400)
committerKristian Høgsberg <krh@redhat.com>
Wed, 10 Oct 2007 22:00:18 +0000 (18:00 -0400)
commit5987a03f994af2bb413d1cf984ab01aa095c0943
tree55dc5d3b0c8bbbbfbd42d4824bcdde3740cc654b
parentaac367f48afc62176faf67aa6f329fbeae2004b4
Convert all DRI entrypoints to take pointers to __DRI* types.

The entrypoints take a mix of __DRIscreen * and void * (screen private)
arguments (similarly for contexts and drawables).  This patch does away
with passing the private void pointer and always only passes the fully
typed __DRIscreen pointer and always as the first argument.

This makes the interface more consistent and increases type safety, and
catches a bug where we would pass a screen private to DRIdrawable::getSBC.
include/GL/internal/dri_interface.h
src/glx/x11/glxcmds.c
src/glx/x11/glxext.c
src/mesa/drivers/dri/common/dri_util.c