From 19a2055385bbc7e16d94f92f8473238f4a8f2d3c Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 30 Aug 2020 08:52:30 +0300 Subject: [PATCH] Use 4x multisampling by default --- libs/app/source/app.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/app/source/app.cpp b/libs/app/source/app.cpp index de2b2232..d4264352 100644 --- a/libs/app/source/app.cpp +++ b/libs/app/source/app.cpp @@ -65,6 +65,9 @@ namespace psemek::app SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); + impl().window = SDL_CreateWindow(name.data(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL | SDL_WINDOW_MAXIMIZED); if (!impl().window) sdl_fail("Failed to create window: ");