chrome 中的 WebGL 粉红色错误
WebGL pink error in chrome
我正在尝试使用 pixie.js.
编写简单的 'game' from this side
我试图通过 google chrome 运行 它,但是我收到了奇怪的错误:
我该如何解决?
编辑
index.js中的错误:225代表这个:
isWebGLSupported: function ()
{
var contextOptions = { stencil: true };
try
{
if (!window.WebGLRenderingContext)
{
return false;
}
var canvas = document.createElement('canvas'),
gl = canvas.getContext('webgl', contextOptions) || canvas.getContext('experimental-webgl', contextOptions);
return !!(gl && gl.getContextAttributes().stencil);
}
catch (e)
{
return false;
}
},
正如另一位用户所说,这不是错误。这是默认显示在任何加载了 pixi.js 库的页面上的欢迎消息。
如果您想隐藏该消息,可以将其添加到您的页面:
<script>
PIXI.utils._saidHello = true;
</script>
我正在尝试使用 pixie.js.
编写简单的 'game' from this side我试图通过 google chrome 运行 它,但是我收到了奇怪的错误:
我该如何解决?
编辑
index.js中的错误:225代表这个:
isWebGLSupported: function ()
{
var contextOptions = { stencil: true };
try
{
if (!window.WebGLRenderingContext)
{
return false;
}
var canvas = document.createElement('canvas'),
gl = canvas.getContext('webgl', contextOptions) || canvas.getContext('experimental-webgl', contextOptions);
return !!(gl && gl.getContextAttributes().stencil);
}
catch (e)
{
return false;
}
},
正如另一位用户所说,这不是错误。这是默认显示在任何加载了 pixi.js 库的页面上的欢迎消息。
如果您想隐藏该消息,可以将其添加到您的页面:
<script>
PIXI.utils._saidHello = true;
</script>