Release the gl_access mutex before deleting the states to ensure that the shaders can be deleted.
Add an example program showing how to apply a shader to a sprite.