mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
9 lines
384 B
HTML
9 lines
384 B
HTML
|
<!doctype html>
|
||
|
<canvas></canvas>
|
||
|
<script>
|
||
|
var canvas = document.body.firstChild,
|
||
|
gl = canvas.getContext("experimental-webgl");
|
||
|
gl.texImage2D(0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
|
||
|
gl.texSubImage2D(0, 0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
|
||
|
</script>
|