From d6bc68d63259234b83ceaec9464cebd2aa188374 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 12 May 2013 12:10:13 +1000 Subject: [PATCH] workaround glibc ld.so bug #12561 from Jochen Leopold: Fixed dclose problems (stuck in level 4) * UNIQUE symbols in jk2gamex86.so don't allow to unload the library on map changes! ** so all global variables are not reseted -> this causes many bugs (stuck on start of level 4 for example) * removed one "inline" attribute which fixes this bug ** there is just a GLIBCXX unique symbol left: readelf -Ws ./jk2gamex86.so | grep UNIQUE --- code/cgame/FxPrimitives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cgame/FxPrimitives.cpp b/code/cgame/FxPrimitives.cpp index 43be82b..1718e25 100644 --- a/code/cgame/FxPrimitives.cpp +++ b/code/cgame/FxPrimitives.cpp @@ -2082,7 +2082,7 @@ bool CBezier::Update( void ) } //---------------------------- -inline void CBezier::DrawSegment( vec3_t start, vec3_t end, float texcoord1, float texcoord2 ) +void CBezier::DrawSegment( vec3_t start, vec3_t end, float texcoord1, float texcoord2 ) { vec3_t lineDir, cross, viewDir; static vec3_t lastEnd[2];