summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2015-03-20 15:26:51 +0100
committerBryce Harrington <bryce@osg.samsung.com>2015-03-20 13:56:38 -0700
commit51a7ae5f89e9504f49bd98c7cd714e66c2a35580 (patch)
tree06acb4561ed8bbfc512eee565907e1f3b0ffdb3c /tests
parent70eba3fbde63721fab950e12f848b92d652a85ad (diff)
downloadweston-51a7ae5f89e9504f49bd98c7cd714e66c2a35580.tar.gz
weston-51a7ae5f89e9504f49bd98c7cd714e66c2a35580.tar.bz2
weston-51a7ae5f89e9504f49bd98c7cd714e66c2a35580.zip
clients & tests: use eglGetPlatformDisplayEXT when supported
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/buffer-count-test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/buffer-count-test.c b/tests/buffer-count-test.c
index 43fb089e..815e1cc8 100644
--- a/tests/buffer-count-test.c
+++ b/tests/buffer-count-test.c
@@ -29,6 +29,7 @@
#include <GLES2/gl2.h>
#include "weston-test-client-helper.h"
+#include "../shared/platform.h"
#define fail(msg) { fprintf(stderr, "%s failed\n", msg); return -1; }
@@ -66,10 +67,12 @@ init_egl(struct test_data *test_data)
EGLint major, minor, n;
EGLBoolean ret;
- test_data->egl_dpy = eglGetDisplay((EGLNativeDisplayType)
- test_data->client->wl_display);
+ test_data->egl_dpy =
+ weston_platform_get_egl_display(EGL_PLATFORM_WAYLAND_KHR,
+ test_data->client->wl_display,
+ NULL);
if (!test_data->egl_dpy)
- fail("eglGetDisplay");
+ fail("eglGetPlatformDisplay or eglGetDisplay");
if (eglInitialize(test_data->egl_dpy, &major, &minor) != EGL_TRUE)
fail("eglInitialize");