// You need to do this because the desktop capture API will only work if we are on the graphics thread void OnPostRender() { desktopCapture1.OnPostRender(); }