Auto-resizing canvas and gl viewport on browser resize