<meta charset="utf-8">
<title>WebGL Scissor Test</title>
<link rel="stylesheet" href="../../resources/js-test-style.css"/>
-<script src="../../debug/webgl-debug.js"></script>
<script src="../../resources/js-test-pre.js"></script>
<script src="../resources/webgl-test-utils.js"></script>
+<style>
+canvas {
+ border: 1px solid #000;
+ width: 64px;
+ height: 64px;
+}
+</style>
</head>
<body>
+<canvas id="canvas1" width="16" height="16"> </canvas>
+<canvas id="canvas2" width="16" height="16"> </canvas>
<div id="description"></div>
<div id="console"></div>
-<canvas id="canvas1" width="16" height="16" style="width: 40px; height: 40px;"> </canvas>
-<canvas id="canvas2" width="16" height="16" style="width: 40px; height: 40px;"> </canvas>
<script>
"use strict";
description("Check if glScissor setting works.");
-debug("");
-debug("Canvas.getContext");
-
var wtu = WebGLTestUtils;
function test(canvas, attribs) {
var size = 16;
for (var ii = 0; ii < size; ++ii) {
- // clear a portion of our FBO
+ // clear a portion of the WebGL drawing buffer
gl.scissor(ii, ii, 1, 1);
func();
}
}
}
-debug("");
debug("test antialias: false");
test(document.getElementById("canvas1"), {antialias: false});