clients & tests: use eglCreatePlatformWindowSurfaceEXT when supported

Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Jonny Lamb
2015-03-20 15:26:53 +01:00
committed by Bryce Harrington
parent 671148f064
commit 4bdcb5732b
6 changed files with 40 additions and 18 deletions
+3 -4
View File
@@ -95,10 +95,9 @@ init_egl(struct test_data *test_data)
surface->width,
surface->height);
test_data->egl_surface =
eglCreateWindowSurface(test_data->egl_dpy,
test_data->egl_conf,
(EGLNativeWindowType) native_window,
NULL);
weston_platform_create_egl_window(test_data->egl_dpy,
test_data->egl_conf,
native_window, NULL);
ret = eglMakeCurrent(test_data->egl_dpy, test_data->egl_surface,
test_data->egl_surface, test_data->egl_ctx);