forked from pool/freeglut
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/freeglut?expand=0&rev=32
31 lines
930 B
Diff
31 lines
930 B
Diff
|
|
github.com/freeglut/freeglut/issues/186
|
|
github.com/freeglut/freeglut/pull/187
|
|
|
|
|
|
From 800772e993a3ceffa01ccf3fca449d3279cde338 Mon Sep 17 00:00:00 2001
|
|
From: Sam James <sam@gentoo.org>
|
|
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
|