14 lines
587 B
JavaScript
14 lines
587 B
JavaScript
shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$program$getTestContext = function(global, require, module, exports) {
|
|
var adapter = require("module$node_modules$pixi_DOT_js$lib$environment$adapter");
|
|
"use strict";
|
|
let context;
|
|
exports.getTestContext = function() {
|
|
if (!context || context?.isContextLost()) {
|
|
context = adapter.DOMAdapter.get().createCanvas().getContext("webgl", {});
|
|
}
|
|
return context;
|
|
};
|
|
};
|
|
|
|
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$shader$program$getTestContext.js.map
|