10 lines
299 B
HTML
10 lines
299 B
HTML
<canvas height=200 id=gl>
|
|
<script>
|
|
// Without the fix, this would trigger an assertion in the debug build
|
|
document.addEventListener("DOMContentLoaded", DifferentSizes);
|
|
function DifferentSizes() {
|
|
gl.getContext("2d");
|
|
gl.removeAttribute('height');
|
|
gl.toBlob(function() { }, false)
|
|
}
|
|
</script>
|