diff options
author | anholt <anholt@FreeBSD.org> | 2003-11-09 16:24:56 +0800 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2003-11-09 16:24:56 +0800 |
commit | 7ab6b385cee8edd760aa4fa3766c8d1409283e4f (patch) | |
tree | 87251bf63e5aaf2aa7d37d4148e599387a9d1148 /graphics/dri/files/patch-dri_util.c | |
parent | 7c857169621aca4d6f904ea730b2a037e1463e8c (diff) | |
download | freebsd-ports-graphics-7ab6b385cee8edd760aa4fa3766c8d1409283e4f.tar.gz freebsd-ports-graphics-7ab6b385cee8edd760aa4fa3766c8d1409283e4f.tar.zst freebsd-ports-graphics-7ab6b385cee8edd760aa4fa3766c8d1409283e4f.zip |
Add new port "dri". This port contains the split-out DRI client drivers from
XFree86-4-Server. I decided the history from XFree86-4-Server wasn't
significant enough, and will hopefully be obsolete soon when Mesa starts
providing the DRI drivers.
Diffstat (limited to 'graphics/dri/files/patch-dri_util.c')
-rw-r--r-- | graphics/dri/files/patch-dri_util.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/graphics/dri/files/patch-dri_util.c b/graphics/dri/files/patch-dri_util.c new file mode 100644 index 00000000000..0084acff7a3 --- /dev/null +++ b/graphics/dri/files/patch-dri_util.c @@ -0,0 +1,26 @@ +Index: lib/GL/dri/dri_util.c +=================================================================== +RCS file: /home/ncvs/xfree/xc/lib/GL/dri/dri_util.c,v +retrieving revision 1.6 +retrieving revision 1.7 +diff -u -u -r1.6 -r1.7 +--- lib/GL/dri/dri_util.c 15 Feb 2003 22:12:29 -0000 1.6 ++++ lib/GL/dri/dri_util.c 28 Apr 2003 17:01:25 -0000 1.7 +@@ -921,7 +921,7 @@ + int directCapable; + __DRIscreenPrivate *psp; + drmHandle hFB, hSAREA; +- char *BusID, *driverName; ++ char *BusID, *driverName = NULL; + drmMagic magic; + + if (!XF86DRIQueryDirectRenderingCapable(dpy, scrn, &directCapable)) { +@@ -1010,6 +1010,8 @@ + (void)XF86DRICloseConnection(dpy, scrn); + return NULL; + } ++ if (driverName) ++ Xfree(driverName); + + /* install driver's callback functions */ + memcpy(&psp->DriverAPI, driverAPI, sizeof(struct __DriverAPIRec)); |