From 0b307afd57082f0d4a0e8ba19093d313c9fb46ad Mon Sep 17 00:00:00 2001 From: Armin K Date: Fri, 2 May 2014 23:59:22 +0200 Subject: [PATCH] glx: Conditionally compile GLX_MESA_query_renderer DRI3 support Missed out with commit 625bdd64e5ea3327d4459b1ccccff8dab89129d0. Cc: "10.1" Reviewed-by: Emil Velikov --- src/glx/dri2_query_renderer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c index c96e1f94a42..c1e87723913 100644 --- a/src/glx/dri2_query_renderer.c +++ b/src/glx/dri2_query_renderer.c @@ -28,7 +28,9 @@ #include "dri2.h" #include "dri_interface.h" #include "dri2_priv.h" +#if defined(HAVE_DRI3) #include "dri3_priv.h" +#endif static int dri2_convert_glx_query_renderer_attribs(int attribute) @@ -99,6 +101,7 @@ dri2_query_renderer_string(struct glx_screen *base, int attribute, return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value); } +#if defined(HAVE_DRI3) _X_HIDDEN int dri3_query_renderer_integer(struct glx_screen *base, int attribute, unsigned int *value) @@ -136,5 +139,6 @@ dri3_query_renderer_string(struct glx_screen *base, int attribute, return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value); } +#endif /* HAVE_DRI3 */ #endif /* GLX_DIRECT_RENDERING */ -- 2.30.2