From 15579c705c5a7c04749d01c27c6921fdad82e9f2 Mon Sep 17 00:00:00 2001 From: Christoph Diehl <1614333+posidron@users.noreply.github.com> Date: Wed, 25 Apr 2018 14:22:20 -0700 Subject: [PATCH] Add WebGL extensions names --- lib/make/webgl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)