mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-24 10:32:02 -06:00
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 <marcandre.lureau@redhat.com> Message-Id: <20230515132455.1025608-1-marcandre.lureau@redhat.com>
This commit is contained in:
parent
333e7599a0
commit
72cbcead96
1 changed files with 2 additions and 4 deletions
|
@ -439,10 +439,8 @@ static EGLDisplay qemu_egl_get_display(EGLNativeDisplayType native,
|
||||||
|
|
||||||
/* In practise any EGL 1.5 implementation would support the EXT extension */
|
/* In practise any EGL 1.5 implementation would support the EXT extension */
|
||||||
if (epoxy_has_egl_extension(NULL, "EGL_EXT_platform_base")) {
|
if (epoxy_has_egl_extension(NULL, "EGL_EXT_platform_base")) {
|
||||||
PFNEGLGETPLATFORMDISPLAYEXTPROC getPlatformDisplayEXT =
|
if (platform != 0) {
|
||||||
(void *) eglGetProcAddress("eglGetPlatformDisplayEXT");
|
dpy = eglGetPlatformDisplayEXT(platform, native, NULL);
|
||||||
if (getPlatformDisplayEXT && platform != 0) {
|
|
||||||
dpy = getPlatformDisplayEXT(platform, native, NULL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue