https://github.com/freeglut/freeglut/pull/187 From ca500e65b40267efe7a05ec7ebae1141544c0cfb Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 17 Nov 2024 01:14:26 +0000 Subject: [PATCH] egl: fix fgPlatformDestroyContext prototype for C23 C23 removes unprototyped functions, so this conflicted with the definition in fg_init_x11.c. Bug: https://github.com/freeglut/freeglut/issues/186 --- src/egl/fg_init_egl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/fg_init_egl.h b/src/egl/fg_init_egl.h index 592c5221d..8753dc0bc 100644 --- a/src/egl/fg_init_egl.h +++ b/src/egl/fg_init_egl.h @@ -28,6 +28,6 @@ extern void fghPlatformInitializeEGL(); extern void fghPlatformCloseDisplayEGL(); -extern void fgPlatformDestroyContext(); +extern void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext ); #endif