From 9b5b8847e6946f3bcdd7439c7ed8fcb3787780fd Mon Sep 17 00:00:00 2001 From: IllusionMan1212 Date: Wed, 22 Nov 2023 02:24:19 +0200 Subject: [PATCH] MSAA --- x11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x11.c b/x11.c index 6e9c1aa..800740f 100644 --- a/x11.c +++ b/x11.c @@ -58,6 +58,7 @@ int init_x11(Display **display, Window *window, const char* title, int window_wi GLint visual_attributes[] = { GLX_RENDER_TYPE, GLX_RGBA_BIT, GLX_DOUBLEBUFFER, 1, + GLX_SAMPLES, 4, // MSAA None }; @@ -97,6 +98,7 @@ int init_x11(Display **display, Window *window, const char* title, int window_wi glad_glXSwapIntervalEXT(*display, *window, 1); // we enable blending for text glEnable(GL_BLEND); + glEnable(GL_MULTISAMPLE); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glViewport(0, 0, win_attrs.width, win_attrs.height); resize_x11_window(*display, *window);