Backport of "glfilters: Don't use static variables for storing per-element state" into 1.16
Backport of !450 (merged) "glfilters: Don't use static variables for storing per-element state".
Needs manual intervention, cherry-picking failed!
Commits:
- 73bd32e7 glfilters: Don't use static variables for storing per-element state
Edited by Matthew Waters