mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 05:08:54 +00:00
16 lines
364 B
JavaScript
16 lines
364 B
JavaScript
var WebGLSupportedExtensions = (function () {
|
|
|
|
var gl = document.createElement('canvas').getContext('webgl');
|
|
var extensionList = gl ? gl.getSupportedExtensions() : [];
|
|
|
|
return {
|
|
|
|
has: function (name)
|
|
{
|
|
return extensionList.indexOf(name) >= 0;
|
|
}
|
|
|
|
};
|
|
}());
|
|
|
|
module.exports = WebGLSupportedExtensions;
|