vcl: Use single-buffer rendering and only flush when necessary

Change-Id: I832dd6f3647fbb423975fa928a5ec32447225e85
vcl: Fix the masked texture program attributes binding

Change-Id: Ie7440881f35eaf348aef35beea5a6d407d16a342