Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
043efe38
Commit
043efe38
authored
Sep 27, 2016
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ACG/GL/IRenderer.cc
View file @
043efe38
...
...
@@ -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
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment