diff options
author | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-05-19 03:37:26 +0300 |
---|---|---|
committer | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-05-21 18:25:59 +0300 |
commit | a7b7ea057116de6b932a68e994a557aaa4a8c080 (patch) | |
tree | dad7bb754c08d1e8df873462152e70350b2b5713 | |
parent | 3e5bfdc235ba03bfa9142f5e7b62efc8509b8480 (diff) |
tests/egl: Make test appear to be running from glut_waffle
When checking supported extensions and versions egl utils is asking from
glut_waffle what platform is used to verify that egl should be used. But
custom egl tests won't initialize glut_waffle.
Those custom egl tests have to fake glutGetPlatform that returns EGL
platform.
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
-rw-r--r-- | tests/egl/egl-util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/egl/egl-util.c b/tests/egl/egl-util.c index 639515e9..5fcb2bdc 100644 --- a/tests/egl/egl-util.c +++ b/tests/egl/egl-util.c @@ -33,6 +33,16 @@ #include "piglit-util.h" #include "egl-util.h" +#ifdef USE_WAFFLE +#include <waffle/waffle_enum.h> + +int glutGetPlatform(void) +{ + return WAFFLE_PLATFORM_X11_EGL; +} + +#endif + static int automatic; int depth; |