[Mesa-dev] [PATCH 16/18] glx/tests: Add GetGLXScreenConfigs_called flag

Ian Romanick idr at freedesktop.org
Sat Oct 12 00:10:23 CEST 2013


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

Tests for the GLX_MESA_query_context extension will use this flag.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/glx/tests/create_context_unittest.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/glx/tests/create_context_unittest.cpp b/src/glx/tests/create_context_unittest.cpp
index fb3e944..819b0b2 100644
--- a/src/glx/tests/create_context_unittest.cpp
+++ b/src/glx/tests/create_context_unittest.cpp
@@ -54,11 +54,15 @@ glx_context_init(struct glx_context *gc,
    return GL_TRUE;
 }
 
+bool GetGLXScreenConfigs_called = false;
+
 extern "C" struct glx_screen *
 GetGLXScreenConfigs(Display * dpy, int scrn)
 {
    (void) dpy;
    (void) scrn;
+
+   GetGLXScreenConfigs_called = true;
    return psc;
 }
 
-- 
1.8.1.4



More information about the mesa-dev mailing list