(gl)
| 60439 | return targetCanvas; |
| 60440 | } |
| 60441 | function logInfo(gl) { |
| 60442 | var webGL = (0, _utils.isWebGL2)(gl) ? "WebGL2" : "WebGL1"; |
| 60443 | var info = getContextDebugInfo(gl); |
| 60444 | var driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : ""; |
| 60445 | var debug = gl.debug ? " debug" : ""; |
| 60446 | (0, _utils.log).info(1, "".concat(webGL).concat(debug, " context ").concat(driver))(); |
| 60447 | } |
| 60448 | function getVersion(gl) { |
| 60449 | if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) return 2; |
| 60450 | return 1; |
no test coverage detected