More correct tests state management
Optimize a bit map stage fragment shader for GLES2