x11 window depthbits and render text immediately

This commit is contained in:
2023-11-28 23:19:44 +02:00
parent 1ed67cb62a
commit 5dd067e03b
6 changed files with 31 additions and 44 deletions
+1
View File
@@ -64,6 +64,7 @@ int init_x11(Display **display, Window *window, const char* title, int window_wi
GLint visual_attributes[] = {
GLX_RENDER_TYPE, GLX_RGBA_BIT,
GLX_DEPTH_SIZE, 24,
GLX_DOUBLEBUFFER, 1,
GLX_SAMPLES, 4, // MSAA
None