Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hukasu opened this issue Sep 14, 2017 · 1 comment
Open

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

hukasu opened this issue Sep 14, 2017 · 1 comment

Comments

@hukasu
Copy link

hukasu commented Sep 14, 2017

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

@opengl-tutorial
Copy link

opengl-tutorial commented Sep 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants