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
On my macbook I need to double the width and height passed to the second glViewport on the main loop (right before glUseProgram(quad_programID)), otherwise Suzanne is only rendered on the lower left of the screen.
Might be due to retina display.
I know that it might not be something that can be fixed here but having a warning on the code would be helpful to new students.
The text was updated successfully, but these errors were encountered:
This is due to the Retina display. The OS fakes the window size to keep
"reasonable" pixel sizes, just like mobile browser advertise small screens
at high dpi, and (usually) compensate for this.
See glfwFramebufferSize :
http://www.glfw.org/docs/latest/group__window.html#ga0e2637a4161afb283f5300c7f94785c9
, which is the correct way to do.
On my macbook I need to double the width and height passed to the second glViewport on the main loop (right before glUseProgram(quad_programID)), otherwise Suzanne is only rendered on the lower left of the screen.
Might be due to retina display.
I know that it might not be something that can be fixed here but having a warning on the code would be helpful to new students.
The text was updated successfully, but these errors were encountered: