update for opt offscreen buffer,but firefox is unexpected.