Ticket #356 (closed bug: Fixed)

Opened 8 years ago

Last modified 43 years ago

HOpenGL uses wrong calling convention for GLU callbacks

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: libraries (other) Version: 6.4
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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@talk21.com

Change History

Changed 8 years ago by spanne

  • status changed from assigned to closed
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. 
Note: See TracTickets for help on using tickets.