forked from Mirrors/openclonk
Require a depth buffer size when choosing the glx visual
parent
3760771ee5
commit
8501d99173
|
@ -202,11 +202,13 @@ bool CStdWindow::FindInfo()
|
|||
// attributes for a single buffered visual in RGBA format with at least 4 bits per color
|
||||
static int attrListSgl[] = { GLX_RGBA,
|
||||
GLX_RED_SIZE, 4, GLX_GREEN_SIZE, 4, GLX_BLUE_SIZE, 4,
|
||||
GLX_DEPTH_SIZE, 8,
|
||||
None };
|
||||
// attributes for a double buffered visual in RGBA format with at least 4 bits per color
|
||||
static int attrListDbl[] = { GLX_RGBA, GLX_DOUBLEBUFFER,
|
||||
GLX_RED_SIZE, 4, GLX_GREEN_SIZE, 4, GLX_BLUE_SIZE, 4,
|
||||
GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR,
|
||||
GLX_DEPTH_SIZE, 8,
|
||||
None };
|
||||
// doublebuffered is the best
|
||||
Info = glXChooseVisual(dpy, DefaultScreen(dpy), attrListDbl);
|
||||
|
|
Loading…
Reference in New Issue