Просмотр исходного кода

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.
slewicki 3 лет назад
Родитель
Сommit
bd8ed86009
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/glcontext_wgl.cpp

+ 1 - 1
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,