mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fix fsaa crash on OSX, can't enable multisampling before a window is created (bug #350)
This commit is contained in:
@@ -99,7 +99,6 @@ namespace sdl
|
|||||||
{
|
{
|
||||||
SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 ) ;
|
SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 ) ;
|
||||||
SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, fsaa ) ;
|
SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, fsaa ) ;
|
||||||
glEnable(GL_MULTISAMPLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fullscreen?
|
// Fullscreen?
|
||||||
@@ -137,6 +136,9 @@ namespace sdl
|
|||||||
height = videoinfo->current_h;
|
height = videoinfo->current_h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fsaa > 0)
|
||||||
|
glEnable(GL_MULTISAMPLE);
|
||||||
|
|
||||||
GLint buffers;
|
GLint buffers;
|
||||||
GLint samples;
|
GLint samples;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user