Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 356c891

Browse files
committed
Disable glutCloseFunc() to work-around segfaults.
A real fix will come with the in progress update to the Perl OpenGL module.
1 parent 38ce3d0 commit 356c891

File tree

4 files changed

+23
-175
lines changed

4 files changed

+23
-175
lines changed

OpenGL.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require DynaLoader;
1111

1212
use Carp;
1313

14-
$VERSION = '0.67';
14+
$VERSION = '0.6701';
1515
$BUILD_VERSION = $XS_VERSION = $VERSION;
1616
$VERSION = eval($VERSION);
1717

Release_Notes

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
+------------------------------------------------------------------------+
2+
| OpenGL-0.6701
3+
+------------------------------------------------------------------------+
4+
5+
General Notes:
6+
7+
* This is a work-around release to work around a problem with
8+
segfaults during the glutCloseFunc() processing. Until a
9+
real fix is found, the feature has been disabled.
10+
11+
Highlights:
12+
13+
* glutCloseFunc() feature has been disabled. A warning is given
14+
the first time the close handler is called.
15+
16+
17+
118
+------------------------------------------------------------------------+
219
| OpenGL-0.67
320
+------------------------------------------------------------------------+

gl_exclude.h

-169
This file was deleted.

pogl_glut.xs

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#endif
2828

2929
static int _done_glutInit = 0;
30+
static int _done_glutCloseFunc_warn = 0;
3031

3132

3233
/* Macros for GLUT callback and handler declarations */
@@ -1476,9 +1477,8 @@ glutCloseFunc(handler=0, ...)
14761477
SV * handler
14771478
CODE:
14781479
{
1479-
#if defined HAVE_FREEGLUT
1480-
decl_gwh_xs(Close)
1481-
#elif defined HAVE_AGL_GLUT
1482-
decl_gwh_xs(WMClose)
1483-
#endif
1480+
if (_done_glutCloseFunc_warn == 0) {
1481+
warn("glutCloseFunc: not implemented\n");
1482+
_done_glutCloseFunc_warn++;
1483+
}
14841484
}

0 commit comments

Comments
 (0)