Commit 043efe38 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

Old C++ doesn't like local comparator class in std::sort.

parent d1538be2
Pipeline #2909 passed with stage
in 49 minutes and 30 seconds
......@@ -739,14 +739,16 @@ void IRenderer::clearInputFbo( const ACG::Vec4f& clearColor )
glDisable(GL_SCISSOR_TEST);
}
namespace {
struct RenderObjectComparator {
bool operator() (ACG::RenderObject *a, ACG::RenderObject * b) {
return (a->priority < b->priority);
}
};
}
void IRenderer::sortRenderObjects()
{
struct RenderObjectComparator {
bool operator() (ACG::RenderObject *a, ACG::RenderObject * b) {
return (a->priority < b->priority);
}
};
std::sort(sortedObjects_.begin(), sortedObjects_.end(), RenderObjectComparator());
std::sort(overlayObjects_.begin(), overlayObjects_.end(), RenderObjectComparator());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment