mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 06:00:48 +00:00
SDL: Added antialiasing support.
This commit is contained in:
parent
8f451e1f11
commit
56208e0ca0
@ -123,6 +123,15 @@ byte *SurfaceSdlGraphicsManager::setupScreen(int screenW, int screenH, bool full
|
||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
|
||||
|
||||
if (ConfMan.hasKey("antialiasing") && ConfMan.getInt("antialiasing")) {
|
||||
// Antialiasing works without setting MULTISAMPLEBUFFERS, but as SDL's official
|
||||
// tests set both values, this seems to be the standard way to do it. It could
|
||||
// just be that in current OpenGL implementations setting SDL_GL_MULTISAMPLESAMPLES
|
||||
// implicitly sets SDL_GL_MULTISAMPLEBUFFERS as well.
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, ConfMan.getInt("antialiasing"));
|
||||
}
|
||||
|
||||
sdlflags = SDL_OPENGL;
|
||||
bpp = 24;
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user