Fix GL emulation cleanup to properly update the state it changes.