diff --git a/src/Controller.cpp b/src/Controller.cpp index c38c950..1e09551 100644 --- a/src/Controller.cpp +++ b/src/Controller.cpp @@ -31,6 +31,7 @@ Controller::Controller() { glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); + glfwWindowHint(GLFW_SAMPLES, 4); #ifndef _DEBUG glfwWindowHint(GLFW_MAXIMIZED, GL_TRUE); diff --git a/src/Window.cpp b/src/Window.cpp index e95ff84..0211f06 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -33,6 +33,9 @@ Window::Window() { glFrontFace(GL_CW); glCullFace(GL_FRONT); + // Enable multisampling (a bit redundant because most graphics drivers do this automatically) + glEnable(GL_MULTISAMPLE); + // Disable mouse cursor #ifdef _DEBUG mouseCatched = false;