aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-02 09:35:58 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-02 09:35:58 +0000
commitaecdb6a2e201c7d21ac5f6beed935e8bca3179e1 (patch)
tree5a09aa4109e6f9e87a7ac0b1202e91da712fc7f9 /Game/Code/lib
parentb1ecd10fe83594394ba11babc8ca9ccee8906e73 (diff)
downloadusdx-aecdb6a2e201c7d21ac5f6beed935e8bca3179e1.tar.gz
usdx-aecdb6a2e201c7d21ac5f6beed935e8bca3179e1.tar.xz
usdx-aecdb6a2e201c7d21ac5f6beed935e8bca3179e1.zip
bugfix: USDX crashed while unloading opengl because of a bug in opengl12.pas (Glu was unloaded twice, because the handle of the main gl-lib was overwritten with that of glu)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1050 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/lib/JEDI-SDL/OpenGL/Pas/opengl12.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/Game/Code/lib/JEDI-SDL/OpenGL/Pas/opengl12.pas b/Game/Code/lib/JEDI-SDL/OpenGL/Pas/opengl12.pas
index dd27bfbc..f7d2f352 100644
--- a/Game/Code/lib/JEDI-SDL/OpenGL/Pas/opengl12.pas
+++ b/Game/Code/lib/JEDI-SDL/OpenGL/Pas/opengl12.pas
@@ -8064,7 +8064,9 @@ begin
if GLUHandle <> INVALID_MODULEHANDLE then
begin
+ {$IFDEF KYLIX}
GLHandle := TModuleHandle(GLUHandle); // Kylix compatiblilty trick
+ {$ENDIF}
gluBeginCurve := GetModuleSymbol( GLUHandle, 'gluBeginCurve');
gluBeginPolygon := GetModuleSymbol( GLUHandle, 'gluBeginPolygon');