diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index d9cdef95a..ea23acb65 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -5982,7 +5982,7 @@ namespace bgfx { namespace gl { if ( (BGFX_CLEAR_DISCARD_DEPTH|BGFX_CLEAR_DISCARD_STENCIL) == dsFlags) { - buffers[idx++] = GL_DEPTH_ATTACHMENT|GL_STENCIL_ATTACHMENT; + buffers[idx++] = GL_DEPTH_STENCIL_ATTACHMENT; } else if (BGFX_CLEAR_DISCARD_DEPTH == dsFlags) {