Skip to content

Commit

Permalink
[fix] Sensible AA default. Reduction of Portal artifacts while walkin…
Browse files Browse the repository at this point in the history
…g through a portal.
  • Loading branch information
hhirsch committed Mar 30, 2014
1 parent 85f9947 commit 481b5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Window.cpp
Expand Up @@ -35,7 +35,7 @@ void Window::setup(int *argc, char **argv) {
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 16);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);

w = SDL_CreateWindow(TITLE,
SDL_WINDOWPOS_UNDEFINED,
Expand Down Expand Up @@ -109,7 +109,7 @@ void Window::updateViewport() {
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60.0, (float) width/height, 0.1f, 50.f);
gluPerspective(60.0, (float) width/height, 0.01f, 50.f);
glMatrixMode(GL_MODELVIEW);
}

Expand Down

0 comments on commit 481b5a3

Please sign in to comment.