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

Add inout workaround for GLSL on NVIDIA drivers #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pushrax
Copy link

@pushrax pushrax commented Mar 7, 2015

Some NVIDIA GLSL compilers have a discrepancy causing array-typed function arguments declared with the "out" parameter qualifier to not update the caller's input. Whether this is a driver bug or not is debatable, but in any event this workaround should support all cases.

This was reported on the NVIDIA forums a little while ago by someone else: https://devtalk.nvidia.com/default/topic/777925/opengl/varying-array-set-inside-function-using-quot-out-quot-fails/

@xthexder thanks for finding this one!

The NVIDIA GLSL compiler has a discrepancy causing array-typed function
arguments declared with the "out" parameter qualifier to not update the
caller's input.

Whether this is a driver bug or not is debatable.
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.

3 participants