Added isWebGL. Fixed button destroy.