summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-02-22 15:35:27 -0800
committerIan Romanick <[email protected]>2013-11-07 18:12:33 -0800
commitd4cc1869374c93ef82db5298e9a3941c69e61831 (patch)
treeede5ef24b9c4b8b6bcae95d67ea4a6b2f46446de /src/glx
parentee6c9fcbcaf525b13f23537f50e207bff57581d8 (diff)
glx/tests: Add GetGLXScreenConfigs_called flag
Tests for the GLX_MESA_query_context extension will use this flag. Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/tests/create_context_unittest.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}