win-capture: Do not reset GL capture if cx/cy is 0

It is not necessary to reset the capture when cx or cy is at 0 because 0
means the application is minimized.
This commit is contained in:
jp9000
2015-09-22 18:04:46 -07:00
parent 7010edee9e
commit e57aa3cab2

View File

@@ -744,7 +744,8 @@ static void gl_capture(HDC hdc)
/* reset capture if resized */
get_window_size(hdc, &new_cx, &new_cy);
if (new_cx != data.base_cx || new_cy != data.base_cy) {
gl_free();
if (new_cx != 0 && new_cy != 0)
gl_free();
return;
}