Mesa (master): glx/tests: Add GetGLXScreenConfigs_called flag
Ian Romanick
idr at kemper.freedesktop.org
Fri Nov 8 02:24:13 UTC 2013
Module: Mesa
Branch: master
Commit: d4cc1869374c93ef82db5298e9a3941c69e61831
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4cc1869374c93ef82db5298e9a3941c69e61831
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Feb 22 15:35:27 2013 -0800
glx/tests: Add GetGLXScreenConfigs_called flag
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 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 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;
}
More information about the mesa-commit
mailing list