remove unneeded note
This commit is contained in:
parent
4c3227b591
commit
dc392d328e
1 changed files with 0 additions and 4 deletions
|
|
@ -37,10 +37,6 @@
|
||||||
if (window.WebGLRenderingContext) {
|
if (window.WebGLRenderingContext) {
|
||||||
const canvas = document.createElement('canvas');
|
const canvas = document.createElement('canvas');
|
||||||
try {
|
try {
|
||||||
// Note that { failIfMajorPerformanceCaveat: true } can be passed as a second argument
|
|
||||||
// to canvas.getContext(), causing the check to fail if hardware rendering is not available. See
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext
|
|
||||||
// for more details.
|
|
||||||
const context = canvas.getContext('webgl2') || canvas.getContext('webgl');
|
const context = canvas.getContext('webgl2') || canvas.getContext('webgl');
|
||||||
if (context && typeof context.getParameter == 'function') {
|
if (context && typeof context.getParameter == 'function') {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue