Skip to content

Commit 7d7e219

Browse files
committed
OpenGL (NetBSD): fix build
1 parent 4937ccf commit 7d7e219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/opengl/opengl_shared.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static const char* eglHandleData(FFOpenGLResult* result, EGLData* data)
105105
if(!data->ffglGetString)
106106
return "eglGetProcAddress(glGetString) returned NULL";
107107

108-
#ifdef EGL_PLATFORM_SURFACELESS_MESA
108+
#if EGL_VERSION_1_5
109109
PFNEGLGETPLATFORMDISPLAYPROC ffeglGetPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYPROC) data->ffeglGetProcAddress("eglGetPlatformDisplay");
110110
if (ffeglGetPlatformDisplay)
111111
data->display = ffeglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, NULL, NULL);

0 commit comments

Comments
 (0)