OpenGL cleanup; do not change uniform for mask texture at each draw of
Layers and Mixing views (costly).
Authored by: brunoherbelin 2016-11-10
Parent: [r1244]
Child: [r1246]