2016-01-27 33 views
1

我正在嘗試使用pixie.js編寫簡單的'遊戲'from this sideWebGL粉紅色錯誤

我試圖通過谷歌瀏覽器來運行它,但我得到奇怪的錯誤:

enter image description here

我能做些什麼來解決呢?

編輯

錯誤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; 
    } 
}, 
+2

這是不是一個錯誤。 –

回答

2

這不是一個錯誤,因爲另一個用戶說。這是在pixi.js庫加載的任何頁面上默認顯示的歡迎消息。

如果你想隱藏的消息,您可以添加到您的網頁:

<script> 
PIXI.utils._saidHello = true; 
</script>