From: ehofman Date: Tue, 26 Apr 2005 09:08:58 +0000 (+0000) Subject: IRIX fixes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb670f6658f02bd55dfdc6493c82f3d22e0fc9c2;p=simgear.git IRIX fixes. --- diff --git a/simgear/scene/sky/cloudfield.cxx b/simgear/scene/sky/cloudfield.cxx index 8555af20..b5bef13f 100644 --- a/simgear/scene/sky/cloudfield.cxx +++ b/simgear/scene/sky/cloudfield.cxx @@ -376,7 +376,7 @@ void SGCloudField::Render(void) { cullClouds(fieldPos, tmp); } // sort all visible clouds back to front (because of transparency) - sort( inViewClouds.begin(), inViewClouds.end() ); + std::sort( inViewClouds.begin(), inViewClouds.end() ); // TODO:push states glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); diff --git a/simgear/scene/sky/newcloud.cxx b/simgear/scene/sky/newcloud.cxx index 6ceb9dbb..917d8065 100644 --- a/simgear/scene/sky/newcloud.cxx +++ b/simgear/scene/sky/newcloud.cxx @@ -386,7 +386,7 @@ void SGNewCloud::sortSprite( sgVec3 eye ) { sgSubVec3( dist, iSprite->pos, eye ); iSprite->dist = -(dist[0]*dist[0] + dist[1]*dist[1] + dist[2]*dist[2]); } - sort( list_spriteDef.begin(), list_spriteDef.end() ); + std::sort( list_spriteDef.begin(), list_spriteDef.end() ); } // render the cloud on screen or on the RTT texture to build the impostor