mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-28 02:14:07 +00:00
Downgrade blend factor crash to warning (#7459)
* pica_to_vk: Downgrade assert to warning * pica_to_gl: Downgrade unreachable to warning
This commit is contained in:
parent
b5042a5257
commit
d857743075
2 changed files with 4 additions and 3 deletions
|
@ -148,8 +148,6 @@ inline GLenum BlendFunc(Pica::FramebufferRegs::BlendFactor factor) {
|
||||||
// Range check table for input
|
// Range check table for input
|
||||||
if (index >= blend_func_table.size()) {
|
if (index >= blend_func_table.size()) {
|
||||||
LOG_CRITICAL(Render_OpenGL, "Unknown blend factor {}", index);
|
LOG_CRITICAL(Render_OpenGL, "Unknown blend factor {}", index);
|
||||||
UNREACHABLE();
|
|
||||||
|
|
||||||
return GL_ONE;
|
return GL_ONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,10 @@ inline vk::BlendFactor BlendFunc(Pica::FramebufferRegs::BlendFactor factor) {
|
||||||
}};
|
}};
|
||||||
|
|
||||||
const auto index = static_cast<std::size_t>(factor);
|
const auto index = static_cast<std::size_t>(factor);
|
||||||
ASSERT_MSG(index < blend_func_table.size(), "Unknown blend factor {}", index);
|
if (index >= blend_func_table.size()) {
|
||||||
|
LOG_CRITICAL(Render_Vulkan, "Unknown blend factor {}", index);
|
||||||
|
return vk::BlendFactor::eOne;
|
||||||
|
}
|
||||||
return blend_func_table[index];
|
return blend_func_table[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue