Simplify code a little.
Complete desktop webgl path.

Depends on ajhager/webgl#2 being merged.