From: Ian Romanick Date: Fri, 22 Feb 2013 23:35:27 +0000 (-0800) Subject: glx/tests: Add GetGLXScreenConfigs_called flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4cc1869374c93ef82db5298e9a3941c69e61831;p=mesa.git glx/tests: Add GetGLXScreenConfigs_called flag Tests for the GLX_MESA_query_context extension will use this flag. Signed-off-by: Ian Romanick --- 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; }