Fixed issue #496
Merge pull request #499 from libavg/fixes/#496

Fixed issue #496
Merge branch 'master' into fix/egl
Merge branch 'fix/egl' of github:libavg/libavg into fix/egl
Fix screenshot function under GLES/EGl

Fixes most tests