diff --git a/example/elements.js b/example/elements.js
index <HASH>..<HASH> 100644
--- a/example/elements.js
+++ b/example/elements.js
@@ -10,6 +10,11 @@ regl.clear({
   depth: 1
 })
 
+var lineWidth = 3
+if (lineWidth > regl.limits.lineWidthDims[1]) {
+  lineWidth = regl.limits.lineWidthDims[1]
+}
+
 regl({
   frag: `
     precision mediump float;
@@ -49,5 +54,5 @@ regl({
     [3, 4]
   ],
 
-  lineWidth: 3
+  lineWidth: lineWidth
 })()
diff --git a/example/graph.js b/example/graph.js
index <HASH>..<HASH> 100644
--- a/example/graph.js
+++ b/example/graph.js
@@ -362,6 +362,11 @@ const renderPoints = regl({
   elements: null
 })
 
+var lineWidth = 2
+if (lineWidth > regl.limits.lineWidthDims[1]) {
+  lineWidth = regl.limits.lineWidthDims[1]
+}
+
 const renderEdges = regl({
   vert: `
   precision highp float;
@@ -402,7 +407,7 @@ const renderEdges = regl({
   depth: {enable: false, mask: false},
   count: ARCS.length,
   primitive: 'lines',
-  lineWidth: 2
+  lineWidth: lineWidth
 })
 
 const splatMouse = regl({
Fix so that 'elements' and 'graph' respect the max lineWidth of the device.