mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
GPU/OpenGL: Fix crash on non-dual-source-blend drivers
This commit is contained in:
parent
e78ea2b60e
commit
19f4921ca7
|
@ -219,7 +219,8 @@ void GPU_HW_OpenGL::SetCapabilities(HostDisplay* host_display)
|
||||||
|
|
||||||
int max_dual_source_draw_buffers = 0;
|
int max_dual_source_draw_buffers = 0;
|
||||||
glGetIntegerv(GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, &max_dual_source_draw_buffers);
|
glGetIntegerv(GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, &max_dual_source_draw_buffers);
|
||||||
m_supports_dual_source_blend = (max_dual_source_draw_buffers > 0);
|
m_supports_dual_source_blend =
|
||||||
|
(max_dual_source_draw_buffers > 0) && (GLAD_GL_VERSION_3_3 || GLAD_GL_ARB_blend_func_extended);
|
||||||
if (!m_supports_dual_source_blend)
|
if (!m_supports_dual_source_blend)
|
||||||
Log_WarningPrintf("Dual-source blending is not supported, this may break some mask effects.");
|
Log_WarningPrintf("Dual-source blending is not supported, this may break some mask effects.");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue