From 8228a4adcdfaf45ea4d8875bec9d3affcb2945c7 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 23 Nov 2020 19:19:14 +0300 Subject: [PATCH] gl: Disable depth test before rendering text to the backbuffer which does have a Z buffer --- rpcs3/Emu/RSX/GL/GLPresent.cpp | 3 +++ rpcs3/rpcs3qt/gl_gs_frame.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/GL/GLPresent.cpp b/rpcs3/Emu/RSX/GL/GLPresent.cpp index d7cefe8f16..d89d543265 100644 --- a/rpcs3/Emu/RSX/GL/GLPresent.cpp +++ b/rpcs3/Emu/RSX/GL/GLPresent.cpp @@ -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()); diff --git a/rpcs3/rpcs3qt/gl_gs_frame.cpp b/rpcs3/rpcs3qt/gl_gs_frame.cpp index bc97e615cc..bb7a5ba73e 100644 --- a/rpcs3/rpcs3qt/gl_gs_frame.cpp +++ b/rpcs3/rpcs3qt/gl_gs_frame.cpp @@ -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) {