From 7d7e219c0a51f6c4d318f6b0a0af5ec97e9ca481 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 14 Dec 2024 13:34:42 +0800 Subject: [PATCH] OpenGL (NetBSD): fix build --- src/detection/opengl/opengl_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/opengl/opengl_shared.c b/src/detection/opengl/opengl_shared.c index 6c048d1b9..299c333dc 100644 --- a/src/detection/opengl/opengl_shared.c +++ b/src/detection/opengl/opengl_shared.c @@ -105,7 +105,7 @@ static const char* eglHandleData(FFOpenGLResult* result, EGLData* data) if(!data->ffglGetString) return "eglGetProcAddress(glGetString) returned NULL"; - #ifdef EGL_PLATFORM_SURFACELESS_MESA + #if EGL_VERSION_1_5 PFNEGLGETPLATFORMDISPLAYPROC ffeglGetPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYPROC) data->ffeglGetProcAddress("eglGetPlatformDisplay"); if (ffeglGetPlatformDisplay) data->display = ffeglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, NULL, NULL);