mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 18:08:08 +00:00
[client] egl: use eglCreateImage and eglDestroyImage indirectly
The dmabuf path is optional, so we shouldn't require those functions to link our program.
This commit is contained in:
@@ -42,6 +42,17 @@ void egl_dynProcsInit(void)
|
||||
eglGetProcAddress("glDebugMessageCallbackKHR");
|
||||
g_egl_dynProcs.glBufferStorageEXT = (PFNGLBUFFERSTORAGEEXTPROC)
|
||||
eglGetProcAddress("glBufferStorageEXT");
|
||||
g_egl_dynProcs.eglCreateImage = (PFNEGLCREATEIMAGEPROC)
|
||||
eglGetProcAddress("eglCreateImage");
|
||||
g_egl_dynProcs.eglDestroyImage = (PFNEGLDESTROYIMAGEPROC)
|
||||
eglGetProcAddress("eglDestroyImage");
|
||||
|
||||
if (!g_egl_dynProcs.eglCreateImage)
|
||||
g_egl_dynProcs.eglCreateImage = (PFNEGLCREATEIMAGEPROC)
|
||||
eglGetProcAddress("eglCreateImageKHR");
|
||||
if (!g_egl_dynProcs.eglDestroyImage)
|
||||
g_egl_dynProcs.eglDestroyImage = (PFNEGLDESTROYIMAGEPROC)
|
||||
eglGetProcAddress("eglDestroyImageKHR");
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user