qzdoom/src/gl/system/gl_threads.cpp