kittykatattack / learningPixi

A step-by-step introduction to making games and interactive media with the Pixi.js rendering engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial error

simon511000 opened this issue · comments

When in test the code of this tutorial :

<!DOCTYPE HTML>
<html>
    <head>
        <title>Test de Pixi</title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.7.1/pixi.min.js"></script>
        <script type="text/javascript">
        let type = "WebGL"
        if(!PIXI.utils.isWebGLSupported()){
          type = "canvas"
        }
    
        PIXI.utils.sayHello(type)
        let app = new PIXI.Application({width: 256, height: 256});
        document.body.appendChild(app.view);
        </script>
    </head>
    <body>
    </body>
</html>

I don't have a black square. And this a the console :

PixiJS 4.7.1 - canvas - http://www.pixijs.com/
index.js:258
Error: WebGL warning: Disallowing antialiased backbuffers due to blacklisting.
index.js:297:16
Error: WebGL warning: Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
index.js:297:16
Error: WebGL warning: Failed to create WebGL context: WebGL creation failed: 
* Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
* Exhausted GL driver options.
index.js:297:16
Error: WebGL warning: Disallowing antialiased backbuffers due to blacklisting.
index.js:297:4
Error: WebGL warning: Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
index.js:297:4
Error: WebGL warning: Failed to create WebGL context: WebGL creation failed: 
* Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
* Exhausted GL driver options.
index.js:297:4
Error: WebGL warning: Disallowing antialiased backbuffers due to blacklisting.
index.js:297:16
Error: WebGL warning: Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
index.js:297:16
Error: WebGL warning: Failed to create WebGL context: WebGL creation failed: 
* Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
* Exhausted GL driver options.
index.js:297:16
Error: WebGL warning: Disallowing antialiased backbuffers due to blacklisting.
index.js:297:4
Error: WebGL warning: Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
index.js:297:4
Error: WebGL warning: Failed to create WebGL context: WebGL creation failed: 
* Refused to create native OpenGL context because of blacklist entry: FEATURE_FAILURE_OPENGL_1
* Exhausted GL driver options.
index.js:297:4
TypeError: document.body is null[En savoir plus]
index.html:14:9
L’encodage de caractères du document HTML n’a pas été déclaré. Le document sera affiché avec des caractères incorrects pour certaines configurations de navigateur si le document contient des caractères en dehors de la plage US-ASCII. L’encodage de caractères de la page doit être déclaré dans le document ou dans le protocole de transfert.
index.html

Why ?