Skip to content
Snippets Groups Projects
Commit 72cbcead authored by Marc-André Lureau's avatar Marc-André Lureau
Browse files

egl: no need to lookup EGL functions manually


libepoxy handles loading the function pointer and dispatching the call,
so you don't have to worry about it.

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230515132455.1025608-1-marcandre.lureau@redhat.com>
parent 333e7599
No related branches found
No related tags found
No related merge requests found
......@@ -439,10 +439,8 @@ static EGLDisplay qemu_egl_get_display(EGLNativeDisplayType native,
/* In practise any EGL 1.5 implementation would support the EXT extension */
if (epoxy_has_egl_extension(NULL, "EGL_EXT_platform_base")) {
PFNEGLGETPLATFORMDISPLAYEXTPROC getPlatformDisplayEXT =
(void *) eglGetProcAddress("eglGetPlatformDisplayEXT");
if (getPlatformDisplayEXT && platform != 0) {
dpy = getPlatformDisplayEXT(platform, native, NULL);
if (platform != 0) {
dpy = eglGetPlatformDisplayEXT(platform, native, NULL);
}
}
......
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