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

Fix glClipControl(GL_UPPER_LEFT) handling in opengl3 (fix #3143) #3146

Closed
wants to merge 1 commit into from
Closed

Fix glClipControl(GL_UPPER_LEFT) handling in opengl3 (fix #3143) #3146

wants to merge 1 commit into from

Conversation

u3shit
Copy link
Contributor

@u3shit u3shit commented Apr 21, 2020

This should fix #3143
I've tested example_glfw_opengl3 and example_sdl_opengl3 with all four combinations of GL_LOWER_LEFT, GL_UPPER_LEFT and GL_NEGATIVE_ONE_TO_ONE, GL_ZERO_TO_ONE. Technically, the projection matrix is wrong in case of GL_ZERO_TO_ONE, but since we draw everything with z=0 and we have glDisable(GL_DEPTH_TEST), it doesn't really matter.

@ocornut
Copy link
Owner

ocornut commented Apr 22, 2020

Thank you very much @u3shit! This is now merged with minor change (I changed the if/else block into a swap and added changelog entries).

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

Successfully merging this pull request may close these issues.

ImGui upside down with glClipControl(GL_UPPER_LEFT, ...)
2 participants