From bd8ed86009b7fe2cbfe08dc324fa0265d295b7ca Mon Sep 17 00:00:00 2001 From: slewicki Date: Fri, 6 May 2022 12:21:05 -0400 Subject: [PATCH] Changed WGL_STENCIL_BITS_ARB to match what gets used in createContext (#2791) On Mesa, the pixel format would match the 0 stencil bits as requested. This change helps bring the pixel format to match what `createContext` would use. --- src/glcontext_wgl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glcontext_wgl.cpp b/src/glcontext_wgl.cpp index 85494e810..34f68212c 100644 --- a/src/glcontext_wgl.cpp +++ b/src/glcontext_wgl.cpp @@ -201,7 +201,7 @@ namespace bgfx { namespace gl WGL_ALPHA_BITS_ARB, 8, WGL_COLOR_BITS_ARB, 32, WGL_DEPTH_BITS_ARB, 24, - WGL_STENCIL_BITS_ARB, 0, + WGL_STENCIL_BITS_ARB, 8, WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_ARB, WGL_SAMPLES_ARB, 0,