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
I've stumbled upon an interesting issue on my laptop. For every sample in the repository, no matter how back I checked out the samples, the UI would be either invisible or show up incorrectly.
I've traced this issue to GlfwWindow::get_dpi_factor where the call to glfwGetMonitorPhysicalSize incorrectly reported my 16x10 inches screen as 16x10mm, causing the reported DPI to be 4000.
Statically setting the factor to 1 fixes the issue, I've also tested out clamping the factor between 0.5 and 2 and this seems to still allow for interactable UI.
The text was updated successfully, but these errors were encountered:
I believe this is simply an issue with the laptop / driver reporting the physical size wrong. If I run xrandr I get the same wrong dimensions as well:
DP-2 connected primary 2560x1600+0+0 (normal left inverted right x axis y axis) 16mm x 10mm
I believe the laptop is trying to report its screen size using inches (as it is a 16 x 10 inch display) but the unit information is lost and thus a bogus value is reported.
I've stumbled upon an interesting issue on my laptop. For every sample in the repository, no matter how back I checked out the samples, the UI would be either invisible or show up incorrectly.
I've traced this issue to
GlfwWindow::get_dpi_factor
where the call toglfwGetMonitorPhysicalSize
incorrectly reported my 16x10 inches screen as 16x10mm, causing the reported DPI to be 4000.Statically setting the factor to 1 fixes the issue, I've also tested out clamping the factor between 0.5 and 2 and this seems to still allow for interactable UI.
The text was updated successfully, but these errors were encountered: