spark: port to opengles-compatible calls
sparkfragment: port to opengles-compatible calls