Skip to content

Commit

Permalink
In new WebGL 2-only Wasm tests, fetch WebGL 2.0 context directly. (Kh…
Browse files Browse the repository at this point in the history
…ronosGroup#3594)

This makes them runnable by navigating to them outside of the test
harness and without URL query parameters.

Follow-on to KhronosGroup#3592.
  • Loading branch information
kenrussell authored Sep 22, 2023
1 parent 77bd9ad commit a06b04b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
debug("Tests that gl.readPixels() can be called on WebAssembly Memory of 16GB in size.");
debug("");
let wtu = WebGLTestUtils;
let gl = wtu.create3DContext("canvas");
let gl = wtu.create3DContext("canvas", undefined, 2);

const PAGE = 65536;
const SIZE = 16*1024*1024*1024;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
debug("Tests that gl.readPixels() can be called on WebAssembly Memory of 4GB in size.");
debug("");
let wtu = WebGLTestUtils;
let gl = wtu.create3DContext("canvas");
let gl = wtu.create3DContext("canvas", undefined, 2);

const PAGE = 65536;
const SIZE = 4*1024*1024*1024 - PAGE; // when uint32_t size is max, we can only reach one page short of full 4GB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
debug("Tests that gl.texImage2D() can be called on WebAssembly Memory 16GB in size.");
debug("");
let wtu = WebGLTestUtils;
var gl = wtu.create3DContext("canvas");
let gl = wtu.create3DContext("canvas", undefined, 2);

const PAGE = 65536;
const SIZE = 16*1024*1024*1024;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
debug("Tests that gl.texImage2D() can be called on WebAssembly Memory 4GB in size.");
debug("");
let wtu = WebGLTestUtils;
var gl = wtu.create3DContext("canvas");
let gl = wtu.create3DContext("canvas", undefined, 2);

const PAGE = 65536;
const SIZE = 4*1024*1024*1024 - PAGE; // when uint32_t size is max, we can only reach one page short of full 4GB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
debug("Tests that gl.texSubImage2D() can be called on WebAssembly Memory 16GB in size.");
debug("");
let wtu = WebGLTestUtils;
var gl = wtu.create3DContext("canvas");
let gl = wtu.create3DContext("canvas", undefined, 2);

const PAGE = 65536;
const SIZE = 16*1024*1024*1024;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
debug("Tests that gl.texSubImage2D() can be called on WebAssembly Memory 4GB in size.");
debug("");
let wtu = WebGLTestUtils;
var gl = wtu.create3DContext("canvas");
let gl = wtu.create3DContext("canvas", undefined, 2);

const PAGE = 65536;
const SIZE = 4*1024*1024*1024 - PAGE; // when uint32_t size is max, we can only reach one page short of full 4GB
Expand Down

0 comments on commit a06b04b

Please sign in to comment.