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 debugging #44

Merged
merged 6 commits into from
Jul 12, 2018
Merged

add debugging #44

merged 6 commits into from
Jul 12, 2018

Conversation

SimonDanisch
Copy link
Member

After running into the third platform, that had modern drivers but didn't fully support the standard OpenGL debug callback, I finally just went for the simple solution of optionally adding a glGetError to all function calls.
One can change the debugging behaviour via ENV["MODERNGL_DEBUGGING"] = "true";Pkg.build("ModernG").
The dynamic, but still overheadless version with reincluding all functions after changing the debug level segfaulted for me in the GC :D Not sure if julia isn't ready to reinclude ~2000 functions, or if I was doing something stupid... Anyways, this is good enough in my eyes, so I can't be bothered to debug this further ;)
cc @louisponet

@SimonDanisch SimonDanisch merged commit 751759f into master Jul 12, 2018
@SimonDanisch SimonDanisch deleted the sd/debug branch July 12, 2018 11:37
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.

1 participant