From 15d9612d7ecaf898d4dcbbcc2ee8a8428f90d107 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 24 Nov 2013 14:02:45 -0500 Subject: [PATCH] enable multisampling --- src/gss.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gss.d b/src/gss.d index b4b69f9..027c3bb 100644 --- a/src/gss.d +++ b/src/gss.d @@ -99,6 +99,9 @@ int main() return 1; } + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); + SDL_Window * window = SDL_CreateWindow("Gentex ScreenSaver", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, @@ -106,6 +109,7 @@ int main() HEIGHT, // SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS); SDL_WINDOW_OPENGL); + SDL_GLContext context = SDL_GL_CreateContext(window); if (window == null)