Refactored get_gl_state method into static method of vsx_gl_state