mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-23 03:58:10 +00:00
[client] enable multisampling
This commit is contained in:
parent
eb6ee8ea46
commit
53c32cc5a4
1 changed files with 5 additions and 1 deletions
|
@ -178,6 +178,8 @@ bool opengl_initialize(void * opaque, Uint32 * sdlFlags)
|
||||||
|
|
||||||
*sdlFlags = SDL_WINDOW_OPENGL;
|
*sdlFlags = SDL_WINDOW_OPENGL;
|
||||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER , 1);
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER , 1);
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -712,6 +714,8 @@ static bool pre_configure(struct Inst * this, SDL_Window *window)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glEnable(GL_MULTISAMPLE);
|
||||||
|
|
||||||
SDL_GL_SetSwapInterval(this->opt.vsync ? 1 : 0);
|
SDL_GL_SetSwapInterval(this->opt.vsync ? 1 : 0);
|
||||||
this->preConfigured = true;
|
this->preConfigured = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue