Skip to content

Commit

Permalink
Work around for resize handler not being called, something to do with…
Browse files Browse the repository at this point in the history
… previous zoom level bug
  • Loading branch information
NeuralSpaz committed Sep 21, 2015
1 parent 13ce11d commit 213045e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/hello_webgl.html
Expand Up @@ -124,6 +124,7 @@
function resize() {
var width = canvasLayer.canvas.width;
var height = canvasLayer.canvas.height;
canvasLayer.resize_();

gl.viewport(0, 0, width, height);

Expand Down Expand Up @@ -194,6 +195,7 @@
}

document.addEventListener('DOMContentLoaded', init, false);
window.addEventListener("resize", resize);
</script>

<script id="pointVertexShader" type="x-shader/x-vertex">
Expand Down

0 comments on commit 213045e

Please sign in to comment.