gl: Disable depth test before rendering text to the backbuffer which does have a Z buffer

This commit is contained in:
kd-11 2020-11-23 19:19:14 +03:00 committed by kd-11
parent 721883f64e
commit 8228a4adcd
2 changed files with 4 additions and 1 deletions

View file

@ -292,6 +292,9 @@ void GLGSRender::flip(const rsx::display_flip_info_t& info)
if (g_cfg.video.overlay)
{
// Disable depth test
gl_state.depth_func(GL_ALWAYS);
gl::screen.bind();
glViewport(0, 0, m_frame->client_width(), m_frame->client_height());

View file

@ -14,7 +14,7 @@ gl_gs_frame::gl_gs_frame(const QRect& geometry, const QIcon& appIcon, const std:
m_format.setMajorVersion(4);
m_format.setMinorVersion(3);
m_format.setProfile(QSurfaceFormat::CoreProfile);
m_format.setDepthBufferSize(16);
m_format.setDepthBufferSize(0);
m_format.setSwapBehavior(QSurfaceFormat::SwapBehavior::DoubleBuffer);
if (g_cfg.video.debug_output)
{