Fix a use of std::remove_if

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-09-12 08:11:38 -03:00
parent 11328a23cf
commit 7eeca829e5
+3 -1
View File
@@ -245,10 +245,12 @@ std::vector<Window::ContextAttribs> Window::getContextAttribsList() const
if (removeES3)
{
std::remove_if(attribslist.begin(), attribslist.end(), [](ContextAttribs a)
auto it = std::remove_if(attribslist.begin(), attribslist.end(), [](ContextAttribs a)
{
return a.gles && a.versionMajor >= 3;
});
attribslist.erase(it, attribslist.end());
}
// Move OpenGL ES to the front of the list if we should prefer GLES.