From bb35261aca9204209182adc3237805048da20de7 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 21 Apr 2017 19:08:27 +0200 Subject: [PATCH] gsdx: don't request a depth buffer on the window Code directly uses depth buffer attached to a frame buffer --- plugins/GSdx/GSWndEGL.cpp | 2 +- plugins/GSdx/GSWndOGL.cpp | 2 +- plugins/GSdx/GSWndWGL.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSWndEGL.cpp b/plugins/GSdx/GSWndEGL.cpp index d28a427349..6d72e8b1ee 100644 --- a/plugins/GSdx/GSWndEGL.cpp +++ b/plugins/GSdx/GSWndEGL.cpp @@ -51,7 +51,7 @@ void GSWndEGL::CreateContext(int major, int minor) EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8, - EGL_DEPTH_SIZE, 24, + EGL_DEPTH_SIZE, 0, EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT, EGL_NONE }; diff --git a/plugins/GSdx/GSWndOGL.cpp b/plugins/GSdx/GSWndOGL.cpp index 2fdf2b98e8..06449a240b 100644 --- a/plugins/GSdx/GSWndOGL.cpp +++ b/plugins/GSdx/GSWndOGL.cpp @@ -52,7 +52,7 @@ void GSWndOGL::CreateContext(int major, int minor) GLX_RED_SIZE , 8, GLX_GREEN_SIZE , 8, GLX_BLUE_SIZE , 8, - GLX_DEPTH_SIZE , 24, + GLX_DEPTH_SIZE , 0, GLX_DOUBLEBUFFER , True, None }; diff --git a/plugins/GSdx/GSWndWGL.cpp b/plugins/GSdx/GSWndWGL.cpp index 093773e33d..da6432c075 100644 --- a/plugins/GSdx/GSWndWGL.cpp +++ b/plugins/GSdx/GSWndWGL.cpp @@ -197,7 +197,7 @@ void GSWndWGL::OpenWGLDisplay() 0, // Shift Bit Ignored 0, // No Accumulation Buffer 0, 0, 0, 0, // Accumulation Bits Ignored - 24, // 24Bit Z-Buffer (Depth Buffer) + 0, // 24Bit Z-Buffer (Depth Buffer) 8, // 8bit Stencil Buffer 0, // No Auxiliary Buffer PFD_MAIN_PLANE, // Main Drawing Layer