Minor refactoring in gles2 module

- rename API function: gles2_update_state
- move all state updates to that function

Signed-off-by: matsi <matsi@example.org>