Skip to content

Commit 9ef8580

Browse files
committed
GPU (EGLext): fix build on old systems
1 parent 813b80c commit 9ef8580

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/detection/gpu/gpu_eglext.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
#include <EGL/egl.h>
66
#include <EGL/eglext.h>
77

8+
#ifndef EGL_RENDERER_EXT
9+
#define EGL_RENDERER_EXT 0x335F
10+
#endif
11+
#ifndef EGL_DRIVER_NAME_EXT
12+
#define EGL_DRIVER_NAME_EXT 0x335E
13+
#endif
14+
815
const char* ffGPUDetectByEglext(FFlist* gpus)
916
{
1017
FF_LIBRARY_LOAD(egl, "dlopen libEGL" FF_LIBRARY_EXTENSION " failed", "libEGL" FF_LIBRARY_EXTENSION, 1);

0 commit comments

Comments
 (0)