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:
committed by
Bryce Harrington
parent
671148f064
commit
4bdcb5732b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user