Fix regression in triangle filter from commit 194207.