Describe the bug
rendering fails when done command is called through a thread
To Reproduce
Steps to reproduce the behavior:
put main function on thread fails to render the anything.
Expected behavior
something to render
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):