Add WebGL extensions names
This commit is contained in:
parent
e245d40e38
commit
15579c705c
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue