Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ogl: don't force depth+stencil for default framebuffer
  • Loading branch information
degasus committed Oct 29, 2013
1 parent 0002236 commit ab35503
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Source/Core/DolphinWX/Src/GLInterface/EGL.cpp
Expand Up @@ -45,12 +45,11 @@ bool cInterfaceEGL::Create(void *&window_handle)
EGLint num_configs;

// attributes for a visual in RGBA format with at least
// 8 bits per color and a 24 bit depth buffer
// 8 bits per color
int attribs[] = {
EGL_RED_SIZE, 8,
EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8,
EGL_DEPTH_SIZE, 24,
#ifdef USE_GLES
#ifdef USE_GLES3
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
Expand Down
7 changes: 2 additions & 5 deletions Source/Core/DolphinWX/Src/GLInterface/GLX.cpp
Expand Up @@ -55,20 +55,18 @@ bool cInterfaceGLX::Create(void *&window_handle)
int glxMajorVersion, glxMinorVersion;

// attributes for a single buffered visual in RGBA format with at least
// 8 bits per color and a 24 bit depth buffer
// 8 bits per color
int attrListSgl[] = {GLX_RGBA, GLX_RED_SIZE, 8,
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
GLX_DEPTH_SIZE, 24,
None};

// attributes for a double buffered visual in RGBA format with at least
// 8 bits per color and a 24 bit depth buffer
// 8 bits per color
int attrListDbl[] = {GLX_RGBA, GLX_DOUBLEBUFFER,
GLX_RED_SIZE, 8,
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
GLX_DEPTH_SIZE, 24,
None };

int attrListDefault[] = {
Expand All @@ -77,7 +75,6 @@ bool cInterfaceGLX::Create(void *&window_handle)
GLX_GREEN_SIZE, 1,
GLX_BLUE_SIZE, 1,
GLX_DOUBLEBUFFER,
GLX_DEPTH_SIZE, 1,
None };

GLWin.dpy = XOpenDisplay(0);
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/Src/GLInterface/WGL.cpp
Expand Up @@ -84,8 +84,8 @@ bool cInterfaceWGL::Create(void *&window_handle)
0, // Shift Bit Ignored
0, // No Accumulation Buffer
0, 0, 0, 0, // Accumulation Bits Ignored
24, // 24Bit Z-Buffer (Depth Buffer)
8, // 8bit Stencil Buffer
0, // 0Bit Z-Buffer (Depth Buffer)
0, // 0bit Stencil Buffer
0, // No Auxiliary Buffer
PFD_MAIN_PLANE, // Main Drawing Layer
0, // Reserved
Expand Down

0 comments on commit ab35503

Please sign in to comment.