diff --git a/lib/make/webgl.js b/lib/make/webgl.js index b3dc18f..c84f6ef 100644 --- a/lib/make/webgl.js +++ b/lib/make/webgl.js @@ -816,7 +816,9 @@ class webgl extends make { if (pattern) { let candidates = [] extensions.forEach((ext) => ext.includes(pattern) ? candidates.push(ext) : '') - return random.item(candidates) + if (candidates.length >= 0) { + return random.item(candidates) + } } return random.item(extensions)