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 the C++ OpenGL compositor on Linux #11

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Conversation

jerzywilczek
Copy link
Contributor

@jerzywilczek jerzywilczek commented Aug 17, 2022

We used to tell OpenGL that the length of our texture coordinates vector is 3.
This is obviously wrong, since texture coordinates are 2-dimensional.
Native macOS OpenGL driver and Google ANGLE were both able to figure out from
the shader code that this is the case and correct it (that's what I
think at least), however Linux drivers weren't. Now the code is correct
and works!

We used to tell OpenGL that the length of our texture coordinates vector is 3.
This is obviously wrong, since texture coordinates are 2-dimensional.
Native macOS OpenGL driver and Google ANGLE were both able to figure out from
the shader code that this is the case and correct it (that's what I
think at least), however Linux drivers didn't. Now the code is correct
and works!
@jerzywilczek jerzywilczek merged commit 9c1791c into master Aug 17, 2022
@jerzywilczek jerzywilczek deleted the opengl-cpp-linux-fix branch August 17, 2022 14:23
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

Successfully merging this pull request may close these issues.

2 participants