Skip to content

Commit

Permalink
Firefox compatibility
Browse files Browse the repository at this point in the history
Need to use `.text` instead of `.innerText`
  • Loading branch information
rcoup committed Feb 28, 2013
1 parent 972f02d commit 6cda4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GL-Solar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ <h1>GL-Solar</h1>
map.insertBefore(c, null);

var gl = c.getContext('experimental-webgl'),
vsource = document.getElementById('shader-vertex').innerText,
vsource = document.getElementById('shader-vertex').text,
vsource = vsource.replace('{CANVAS_WIDTH}', c.width.toFixed(1)),
vsource = vsource.replace('{CANVAS_HEIGHT}', c.height.toFixed(1)),
fsource = document.getElementById('shader-fragment').innerText,
fsource = document.getElementById('shader-fragment').text,
program = linkProgram(gl, vsource, fsource);

gl.useProgram(program);
Expand Down

0 comments on commit 6cda4a7

Please sign in to comment.