Use 4x multisampling by default
This commit is contained in:
parent
de3f9cc8cc
commit
19a2055385
1 changed files with 3 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ namespace psemek::app
|
|||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
|
||||
|
||||
impl().window = SDL_CreateWindow(name.data(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_RESIZABLE | SDL_WINDOW_OPENGL | SDL_WINDOW_MAXIMIZED);
|
||||
if (!impl().window)
|
||||
sdl_fail("Failed to create window: ");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue