[ ghc-Bugs-1185509 ] HOpenGL uses wrong calling convention for GLU
callbacks
SourceForge.net
noreply at sourceforge.net
Sun Apr 24 17:16:58 EDT 2005
Bugs item #1185509, was opened at 2005-04-19 01:15
Message generated for change (Comment added) made by spanne
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1185509&group_id=8032
Category: libraries (other)
Group: 6.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: HOpenGL uses wrong calling convention for GLU callbacks
Initial Comment:
on windows (seen on 98&xp), the red book examples
Tess and TessWind (from GLUT/examples/RedBook/)
crash with a segv.
Fix (tested on win xp only):
in
OpenGL/Graphics/Rendering/OpenGL/GLU/Tesselation.h
s,
change ccall to CALLCONV (which will be stdcall in this
case) for all foreign import "wrapper" callback generators.
http://www.haskell.org//pipermail/hopengl/2005-
April/000610.html
claus.reinke at talk21.com
----------------------------------------------------------------------
>Comment By: Sven Panne (spanne)
Date: 2005-04-24 23:16
Message:
Logged In: YES
user_id=50298
There seems to be a discrepancy between the GLU header shipped
with X11 and with MinGW regarding this aspect, but applying the
proposed change seems to be safe because only WinDoze will be
affected.
Quadrics and NURBS have a similar issue, BTW.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1185509&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list