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

ImGui flips textures vertically for OGL but not for D3D11 #18

Closed
Kostu96 opened this issue Jul 10, 2022 · 1 comment · Fixed by #33
Closed

ImGui flips textures vertically for OGL but not for D3D11 #18

Kostu96 opened this issue Jul 10, 2022 · 1 comment · Fixed by #33
Labels
bug Something isn't working

Comments

@Kostu96
Copy link
Owner

Kostu96 commented Jul 10, 2022

This becomes really problematic when rendering to the framebuffer and displaying in ImGui::Image

@Kostu96 Kostu96 added the bug Something isn't working label Jul 10, 2022
@Kostu96
Copy link
Owner Author

Kostu96 commented Jul 14, 2022

Fixed by adding:
glClipControl(GL_UPPER_LEFT, GL_ZERO_TO_ONE); and glClipControl(GL_LOWER_LEFT, GL_ZERO_TO_ONE);
int OGL framebuffer bind and unbind to render as in D3D, upside down to OGL

@Kostu96 Kostu96 linked a pull request Jul 14, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant