gl2: ensure queryExistingState fills the entire type