GL/ContextEGL: Fix broken surface creation

Regression from #5676.
This commit is contained in:
Connor McLaughlin 2022-04-15 20:12:17 +10:00 committed by refractionpcsx2
parent 55d546b892
commit 0592abd31b
1 changed files with 4 additions and 2 deletions

View File

@ -313,8 +313,10 @@ namespace GL
}
configs.resize(static_cast<u32>(num_configs));
const auto m_config = [this, &configs]() {
const auto found_config = std::find_if(std::begin(configs), std::end(configs), [&](auto&& check_config) { return CheckConfigSurfaceFormat(check_config); });
m_config = [this, &configs]() {
const auto found_config = std::find_if(std::begin(configs), std::end(configs), [&](const auto& check_config) {
return CheckConfigSurfaceFormat(check_config);
});
if (found_config == std::end(configs))
{
Console.Warning("No EGL configs matched exactly, using first.");