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

trace edit: fix crash/corruption in glsl edit #86

Closed
wants to merge 3 commits into from

Conversation

gregory38
Copy link
Contributor

Argument elements are allocated twice (new + push_back) which corrupt trace generated by glsledit

The vector is already allocated. Push_back allocate new elements and previous allocated element remains null pointer.
@gregory38
Copy link
Contributor Author

Hum I think there is anothers bug.
Adding an empty line in a good shader introduce this kind of issue:
ERROR: 0:1: error(#132) Syntax error: '<' parse error

Useful for GL shader errors which spawn multiple lines error message like that:
    >> 2135: warning: Vertex shader failed to compile with the following errors:
    >> ERROR: 1:1: error(apitrace#132) Syntax error: 'sdfsafasf' parse error
    >> ERROR: error(apitrace#273) 1 compilation errors.  No code generated
@zackr
Copy link
Member

zackr commented Jul 6, 2012

Hey, I'm sorry, I missed this pull. I've fixed this error earlier in a week and just pushed it. If you could submit the multiline error/warning as a separate pull that'd be great.

@zackr zackr closed this Jul 6, 2012
@gregory38
Copy link
Contributor Author

Ok I will do it.

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.

None yet

2 participants