{"action":"closed","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3254","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3254/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3254/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3254/events","html_url":"https://github.com/kivy/kivy/issues/3254","id":67199058,"number":3254,"title":"Setting multisampling samples in SDL2 missing","user":{"login":"luminosuslight","id":6317123,"avatar_url":"https://avatars.githubusercontent.com/u/6317123?v=3","gravatar_id":"","url":"https://api.github.com/users/luminosuslight","html_url":"https://github.com/luminosuslight","followers_url":"https://api.github.com/users/luminosuslight/followers","following_url":"https://api.github.com/users/luminosuslight/following{/other_user}","gists_url":"https://api.github.com/users/luminosuslight/gists{/gist_id}","starred_url":"https://api.github.com/users/luminosuslight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luminosuslight/subscriptions","organizations_url":"https://api.github.com/users/luminosuslight/orgs","repos_url":"https://api.github.com/users/luminosuslight/repos","events_url":"https://api.github.com/users/luminosuslight/events{/privacy}","received_events_url":"https://api.github.com/users/luminosuslight/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/needs-analysis","name":"needs-analysis","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kivy/kivy/milestones/25","html_url":"https://github.com/kivy/kivy/milestones/1.9.1","labels_url":"https://api.github.com/repos/kivy/kivy/milestones/25/labels","id":741176,"number":25,"title":"1.9.1","description":null,"creator":{"login":"akshayaurora","id":788023,"avatar_url":"https://avatars.githubusercontent.com/u/788023?v=3","gravatar_id":"","url":"https://api.github.com/users/akshayaurora","html_url":"https://github.com/akshayaurora","followers_url":"https://api.github.com/users/akshayaurora/followers","following_url":"https://api.github.com/users/akshayaurora/following{/other_user}","gists_url":"https://api.github.com/users/akshayaurora/gists{/gist_id}","starred_url":"https://api.github.com/users/akshayaurora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshayaurora/subscriptions","organizations_url":"https://api.github.com/users/akshayaurora/orgs","repos_url":"https://api.github.com/users/akshayaurora/repos","events_url":"https://api.github.com/users/akshayaurora/events{/privacy}","received_events_url":"https://api.github.com/users/akshayaurora/received_events","type":"User","site_admin":false},"open_issues":93,"closed_issues":28,"state":"open","created_at":"2014-08-03T19:04:24Z","updated_at":"2015-07-07T13:34:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-04-08T19:16:25Z","updated_at":"2015-07-07T13:34:27Z","closed_at":"2015-07-07T13:34:27Z","body":"Like in the pygame window provider there should be code in the SDL2 provider that sets the number of samples for multisampling. This could be done either in create_window() in window_sdl2.py or in setup_window() in _window_sdl2.pyx.\r\n\r\nIn setup_window() in _window_sdl2.pyx it could be something like this:\r\n```python\r\nmultisamples = Config.getint('graphics', 'multisamples')\r\n\r\nif multisamples > 0:\r\n    SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1)\r\n    SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, multisamples)\r\n```\r\n\r\nIt probably has to be before  \"self.win = SDL_CreateWindow(...)\".\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10732282-setting-multisampling-samples-in-sdl2-missing?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}