replace GLint with gl_state_index
8 files changed