Fix QVideoSurfaceArbFpPainter mistakenly failing to start in some cases.
authorYoann Lopes <yoann.lopes@digia.com>
Tue, 17 Sep 2013 15:00:28 +0000 (17:00 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 17 Sep 2013 19:16:19 +0000 (21:16 +0200)
commit875de90ff8ecdad69fa8ffe76e39ba5da8d2dc2d
tree9a92ce088b7410b3272c94feab983da84269d764
parent3111178ee600558b8d3280ce5c1397e77ccc7f5f
Fix QVideoSurfaceArbFpPainter mistakenly failing to start in some cases.

If an OpenGL error occurred before starting the video painter, it would
fail to do so. This patch simply makes sure the OpenGL error flag is
cleared before checking for GL errors that would occur in
QVideoSurfaceArbFpPainter's code.

Change-Id: I2eacf6db03cb290adf00a9faf11145c7a6ade565
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/multimediawidgets/qpaintervideosurface.cpp