Skip to content
Snippets Groups Projects
Commit 5d1d2ca3 authored by Manuel Bachmann's avatar Manuel Bachmann Committed by Pekka Paalanen
Browse files

toytoolkit: fix EGL surface creation for lazy drivers


Some DRI drivers, including VMware vmwgfx, do not support
calling eglQueryString() with a EGL_NO_DISPLAY parameter.

Allow toytoolkit to create EGL surfaces with them, by
falling back to the old creation method.

Signed-off-by: default avatarManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent 56d9b88e
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,9 @@ weston_platform_get_egl_proc_address(const char *address)
{
const char *extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
if (strstr(extensions, "EGL_EXT_platform_wayland")
|| strstr(extensions, "EGL_KHR_platform_wayland")) {
if (extensions
&& (strstr(extensions, "EGL_EXT_platform_wayland")
|| strstr(extensions, "EGL_KHR_platform_wayland"))) {
return (void *) eglGetProcAddress(address);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment