From: Marc-André Lureau Date: Tue, 18 Apr 2023 07:32:37 +0000 (+0400) Subject: egl: no need to lookup EGL functions manually X-Git-Tag: qemu-xen-4.20.0~667^2~31 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=72cbcead969de5b34709ac706a3881636010b6f7;p=qemu-xen.git 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: Marc-André Lureau Message-Id: <20230515132455.1025608-1-marcandre.lureau@redhat.com> --- diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index 4203163ace..60385c1f48 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-helpers.c @@ -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); } }