From bb670f6658f02bd55dfdc6493c82f3d22e0fc9c2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 26 Apr 2005 09:08:58 +0000 Subject: [PATCH] IRIX fixes. --- simgear/scene/sky/cloudfield.cxx | 2 +- simgear/scene/sky/newcloud.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5