opengl-tutorials/ogl

glViewport for RTT requires width and height to be double on mac

hukasu opened this issue · 1 comments

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.

screen shot 2017-09-13 at 22 42 48