Add WebGL extensions names
This commit is contained in:
parent
e245d40e38
commit
15579c705c
1 changed files with 3 additions and 1 deletions
|
@ -816,8 +816,10 @@ class webgl extends make {
|
||||||
if (pattern) {
|
if (pattern) {
|
||||||
let candidates = []
|
let candidates = []
|
||||||
extensions.forEach((ext) => ext.includes(pattern) ? candidates.push(ext) : '')
|
extensions.forEach((ext) => ext.includes(pattern) ? candidates.push(ext) : '')
|
||||||
|
if (candidates.length >= 0) {
|
||||||
return random.item(candidates)
|
return random.item(candidates)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return random.item(extensions)
|
return random.item(extensions)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue