gzdoom/src/gl/system/gl_threads.cpp