win-capture: Clear GL error flag before initializing capture

Some games don't catch GL errors via glGetError, so there's a
possibility that an error will pass through to the capture calls,
causing a false failure.

The most simple solution is to just clear the error flag on each capture
call.
This commit is contained in:
jp9000 2015-12-10 15:54:30 -08:00
parent 725a36bc0f
commit 2c8edb8a8a

View File

@ -728,6 +728,9 @@ static void gl_capture(HDC hdc)
}
}
/* reset error flag */
glGetError();
if (capture_should_stop()) {
gl_free();
}