Make openGL context current when recording frame triggered by cursor move
recordFrame requires an openGL context. This is typically done after a frame is rendered, but when we send a frame after a cursor move this is not guaranteed.
recordFrame requires an openGL context. This is typically done after a frame is rendered, but when we send a frame after a cursor move this is not guaranteed.