commit 220d36446e9ae93fcd66334ac2c476af55813d36
parent 93e070c6d3c98b7bcbcbd4f01e76e1ba229bb6ae
Author: falkTX <falktx@falktx.com>
Date: Sun, 12 Apr 2020 19:16:27 +0100
Set GLX_STENCIL_SIZE to 8 in pugl_x11.c
Fixes #217
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/dgl/src/pugl/pugl_x11.c b/dgl/src/pugl/pugl_x11.c
@@ -83,6 +83,7 @@ static int attrListSgl[] = {
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
GLX_DEPTH_SIZE, 16,
+ GLX_STENCIL_SIZE, 8,
GLX_ARB_multisample, 1,
None
};
@@ -98,6 +99,7 @@ static int attrListDbl[] = {
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
GLX_DEPTH_SIZE, 16,
+ GLX_STENCIL_SIZE, 8,
GLX_ARB_multisample, 1,
None
};
@@ -114,6 +116,7 @@ static int attrListDblMS[] = {
GLX_BLUE_SIZE, 4,
GLX_ALPHA_SIZE, 4,
GLX_DEPTH_SIZE, 16,
+ GLX_STENCIL_SIZE, 8,
GLX_SAMPLE_BUFFERS, 1,
GLX_SAMPLES, 4,
None