simple webgl detection and switching logic