summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-02-08 23:15:03 +0100
committerKeith Whitwell <[email protected]>2010-02-08 23:29:15 +0000
commit8b0b5ace4871847f7d8608e0ce6f67b7c5731ea7 (patch)
treeec8c93fdf95eb7cb6f70b340510a6c8ce44b78a8
parentc61bf363937f40624a5632745630d4f2b9907082 (diff)
glx: Fix SwapBuffers regression introduced by 01923fb72d.
After that commit, some dri2 protocol symbols were being checked from places that weren't including dri2proto.h, effectively disabling some valuable SwapBuffers codepaths.
-rw-r--r--src/glx/x11/dri2_glx.c1
-rw-r--r--src/glx/x11/glxext.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/x11/dri2_glx.c b/src/glx/x11/dri2_glx.c
index 6200df94f7f..15a3ea59073 100644
--- a/src/glx/x11/dri2_glx.c
+++ b/src/glx/x11/dri2_glx.c
@@ -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>
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index dde694b9f8b..c2de1a3fff8 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -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"