Got pathtracer to trace once in OpenGL window