From d4cc1869374c93ef82db5298e9a3941c69e61831 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 22 Feb 2013 15:35:27 -0800 Subject: [PATCH] glx/tests: Add GetGLXScreenConfigs_called flag Tests for the GLX_MESA_query_context extension will use this flag. Signed-off-by: Ian Romanick --- 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 fb3e9440a8a..819b0b27dc0 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; } -- 2.30.2