Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Unable to create window with antialiasing on MacOS  (Read 2038 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Unable to create window with antialiasing on MacOS
« on: August 26, 2021, 03:15:20 am »
Hi! I was trying to create a window using SFML with antialiasing, but it does not seem to work in MacOS. It works just fine in Windows and Linux (Ubuntu). Using anything other than antialiasingLevel=0 in MacOS causes the program to crash with message:

Error. Unable to find a suitable pixel format.
zsh: segmentation fault ./example

I'm on a VirtualBox VM with Windows host so I'm not sure if that might be the issue as MacOS can be quite annoying if not running on Apple hardware. Here are the details:

macOS Big Sur 11.0.1 (20B29)
SFML v2.5.1 (built from source code)

It might also be somehow related to these issues: https://github.com/SFML/SFML/issues/161, https://github.com/SFML/SFML/issues/1582. The thing with the second one is that the issue does not occur with a "high" value of antialiasingLevel, it happens with any value other than 0.

It's quite late over here to make a MWE, but I'll make one in the morning. In the meantime even without a MWE it'd be great if I could get some feedback on this issue, as the MWE will be as simple as creating a new window.