enable multisampling
This commit is contained in:
parent
c010c0bb0f
commit
15d9612d7e
@ -99,6 +99,9 @@ int main()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
|
||||||
|
|
||||||
SDL_Window * window = SDL_CreateWindow("Gentex ScreenSaver",
|
SDL_Window * window = SDL_CreateWindow("Gentex ScreenSaver",
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
@ -106,6 +109,7 @@ int main()
|
|||||||
HEIGHT,
|
HEIGHT,
|
||||||
// SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
|
// SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
|
||||||
SDL_WINDOW_OPENGL);
|
SDL_WINDOW_OPENGL);
|
||||||
|
|
||||||
SDL_GLContext context = SDL_GL_CreateContext(window);
|
SDL_GLContext context = SDL_GL_CreateContext(window);
|
||||||
|
|
||||||
if (window == null)
|
if (window == null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user