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

Incorrect translation of OPCODE_UDIV and OPCODE_SWAPC #11

Open
TiemoJung opened this issue Jan 30, 2017 · 0 comments
Open

Incorrect translation of OPCODE_UDIV and OPCODE_SWAPC #11

TiemoJung opened this issue Jan 30, 2017 · 0 comments

Comments

@TiemoJung
Copy link

H,

at least for the GLSL output the translation of OPCODE_UDIV and OPCODE_SWAPC can result in incorrect GLSL code.

As udiv calculates the division and reminder in one step and may overwrite both input registers, the currently emitted GLSL code is incorrect. This is also the same with OPCODE_SWAPC.

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

1 participant