MCPcopy Create free account
hub / github.com/melonjs/melonJS / requireWebGL2

Function requireWebGL2

packages/melonjs/tests/tmxlayer-shader.spec.js:43–47  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

41 // in the reporter and CI summaries) instead of silently no-op'ing,
42 // which would hide a regression behind a green check.
43 const requireWebGL2 = (ctx) => {
44 if (renderer === undefined) {
45 ctx.skip("WebGL2 renderer not available in this environment");
46 }
47 };
48
49 it("lazily constructs the GPU renderer when first asked", (ctx) => {
50 requireWebGL2(ctx);

Callers 1

Calls 1

skipMethod · 0.80

Tested by

no test coverage detected