Enable MSAA

This commit is contained in:
4VRDriver
2020-09-18 21:05:05 +02:00
parent f8b8f68390
commit 717447eebf
2 changed files with 4 additions and 0 deletions

View File

@@ -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);

View File

@@ -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;