diff --git a/plugins/win-capture/graphics-hook/gl-capture.c b/plugins/win-capture/graphics-hook/gl-capture.c index c30c39742..bdb8890c6 100644 --- a/plugins/win-capture/graphics-hook/gl-capture.c +++ b/plugins/win-capture/graphics-hook/gl-capture.c @@ -728,6 +728,9 @@ static void gl_capture(HDC hdc) } } + /* reset error flag */ + glGetError(); + if (capture_should_stop()) { gl_free(); }