lightspark/lightspark — comment on commit 9bc6031c8d2ce237ef584cc8cc6fafbbdb7f0330
File: src/backends/rendering.cpp line 732
By janimo:

This seems to have broken the GLES2 build, it aborts on startup.
I think the inital code - while ugly - does what OpenGL expects, that is too call glGetError() in a loop until you get GL_NO_ERROR, meaning the GL finished what it was asked to do.
That is now done inside handleGLErrors() but if the number of error flags cleaned is >0 that should not be an abort condition.

Reverting the whole commit makes the GLES2 build work again.