[Piglit] [PATCH 01/14] util: Add GLXBadProfileARB as a valid GLX error value

Ian Romanick idr at freedesktop.org
Thu Dec 8 15:41:48 PST 2011


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/util/piglit-glx-util.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tests/util/piglit-glx-util.c b/tests/util/piglit-glx-util.c
index 0406615..f8b0d2e 100644
--- a/tests/util/piglit-glx-util.c
+++ b/tests/util/piglit-glx-util.c
@@ -28,6 +28,10 @@
 #include "piglit-util.h"
 #include "piglit-glx-util.h"
 
+#ifndef GLXBadProfileARB
+#define GLXBadProfileARB 13
+#endif
+
 int piglit_automatic;
 
 Display *
@@ -341,7 +345,7 @@ piglit_glx_get_error(Display *dpy, XErrorEvent *err)
 		return -1;
 
 	if (err->error_code < errbase ||
-	    err->error_code > errbase + GLXBadWindow)
+	    err->error_code > errbase + GLXBadProfileARB)
 		return -1;
 
 	return err->error_code - errbase;
-- 
1.7.6.4



More information about the Piglit mailing list