GCCifying Shyotl
This commit is contained in:
@@ -410,7 +410,7 @@ void LLViewerShaderMgr::setShaders()
|
||||
//Flag base shader objects for deletion
|
||||
//Don't worry-- they won't be deleted until no programs refrence them.
|
||||
std::map<std::string, GLhandleARB>::iterator it = mShaderObjects.begin();
|
||||
for(it;it!=mShaderObjects.end();++it)
|
||||
for(; it!=mShaderObjects.end();++it)
|
||||
if(it->second)
|
||||
glDeleteObjectARB(it->second);
|
||||
mShaderObjects.clear();
|
||||
|
||||
@@ -227,13 +227,13 @@ public:
|
||||
|
||||
shader_iter beginShaders() const
|
||||
{
|
||||
return getGlobalShaderList().begin();
|
||||
return (shader_iter)(getGlobalShaderList().begin());
|
||||
//return mShaderList.begin();
|
||||
}
|
||||
|
||||
shader_iter endShaders() const
|
||||
{
|
||||
return getGlobalShaderList().end();
|
||||
return (shader_iter)(getGlobalShaderList().end());
|
||||
//return mShaderList.end();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user