You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like setWantsBestResolutionOpenGLSurface is not being set to true on mac. This results in the program being provided a 1-pixel-per-point framebuffer regardless of the backing scale factor for the display the view occupies. This means that glViewport is implicitly called for you, and calling it yourself will almost certainly result in an incorrect famebuffer size. To match how DPI scaling works on other systems (Windows and Linux), setWantsBestResolutionOpenGLSurface should be set to true on Mac. This forces the view to perform the correct conversions between view units (points) and pixel units as needed.
This is probably a breaking change.
The text was updated successfully, but these errors were encountered:
Relevant Apple docs
It looks like
setWantsBestResolutionOpenGLSurface
is not being set to true on mac. This results in the program being provided a 1-pixel-per-point framebuffer regardless of the backing scale factor for the display the view occupies. This means that glViewport is implicitly called for you, and calling it yourself will almost certainly result in an incorrect famebuffer size. To match how DPI scaling works on other systems (Windows and Linux),setWantsBestResolutionOpenGLSurface
should be set to true on Mac. This forces the view to perform the correct conversions between view units (points) and pixel units as needed.This is probably a breaking change.
The text was updated successfully, but these errors were encountered: