glx: Fix SwapBuffers regression introduced by 01923fb72d.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 8 Feb 2010 22:15:03 +0000 (23:15 +0100)
committerKeith Whitwell <keithw@vmware.com>
Mon, 8 Feb 2010 23:29:15 +0000 (23:29 +0000)
After that commit, some dri2 protocol symbols were being checked from
places that weren't including dri2proto.h, effectively disabling some
valuable SwapBuffers codepaths.

src/glx/x11/dri2_glx.c
src/glx/x11/glxext.c

index 6200df94f7f7f4bb7611d11e5838f3fa345e24e9..15a3ea590730a8086f8c3a697f0a89b5b9d02401 100644 (file)
@@ -37,6 +37,7 @@
 #include <X11/extensions/Xdamage.h>
 #include "glapi.h"
 #include "glxclient.h"
+#include <X11/extensions/dri2proto.h>
 #include "xf86dri.h"
 #include <dlfcn.h>
 #include <fcntl.h>
index dde694b9f8b53161669b5162927b0ccb2a9d1f92..c2de1a3fff8200a39802b8c8a31a739bb4f893aa 100644 (file)
@@ -41,6 +41,7 @@
 #include "glxclient.h"
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
+#include <X11/extensions/dri2proto.h>
 #include "glxextensions.h"
 #include "glcontextmodes.h"