glfw bug fix with screen recording