Skip to content

Commit

Permalink
Merge pull request #345 from zhujun98/gui
Browse files Browse the repository at this point in the history
Enable MSAA
  • Loading branch information
zhujun98 authored Sep 8, 2024
2 parents aaf6e09 + b657ead commit b343a85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Application::Application() : width_(1440), height_(1080) {
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
#endif

glfwWindowHint(GLFW_SAMPLES, 4);

glfw_window_ = glfwCreateWindow(width_, height_, (title_ + " v" + getRecastxVersion()).c_str(), NULL, NULL);
if (glfw_window_ == NULL) {
glfwTerminate();
Expand Down
1 change: 1 addition & 0 deletions gui/src/graphics/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void Renderer::begin() {
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();

glEnable(GL_MULTISAMPLE);
glEnable(GL_DEPTH_TEST);

glClearColor(Style::BG_COLOR.x, Style::BG_COLOR.y, Style::BG_COLOR.z, Style::BG_COLOR.w);
Expand Down

0 comments on commit b343a85

Please sign in to comment.