cgSetStatePass/cgResetStatePass no longer will be called