diff options
| author | Ray <raysan5@gmail.com> | 2019-04-23 18:10:38 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-04-23 18:10:38 +0200 |
| commit | 0c567cd259285fb33b3e2ab514c48322da0a0000 (patch) | |
| tree | 40e15773092fd0180cd4f9ac35d94bf546a877a2 /templates/web_shell/shell.html | |
| parent | 3aafa9d5ba3fa0a2cbb5759b569c8772a0385d41 (diff) | |
| download | raylib-0c567cd259285fb33b3e2ab514c48322da0a0000.tar.gz raylib-0c567cd259285fb33b3e2ab514c48322da0a0000.zip | |
WARNING: Issues on web building
Found some issues when building for web using latest emscripten 1.38.30, traced the error and found that eglGetProcAdress does not return function pointers for VAO functionality, supported by extension.
It requires more investigation but now it works (avoiding VAO usage)
Diffstat (limited to 'templates/web_shell/shell.html')
| -rw-r--r-- | templates/web_shell/shell.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/web_shell/shell.html b/templates/web_shell/shell.html index f158c432..2e891461 100644 --- a/templates/web_shell/shell.html +++ b/templates/web_shell/shell.html @@ -178,14 +178,14 @@ } </script> <script type='text/javascript'> - var statusElement = document.getElementById('status'); - var progressElement = document.getElementById('progress'); - var spinnerElement = document.getElementById('spinner'); + var statusElement = document.querySelector('#status'); + var progressElement = document.querySelector('#progress'); + var spinnerElement = document.querySelector('#spinner'); var Module = { preRun: [], postRun: [], print: (function() { - var element = document.getElementById('output'); + var element = document.querySelector('#output'); if (element) element.value = ''; // clear browser cache return function(text) { if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' '); @@ -210,7 +210,7 @@ } }, canvas: (function() { - var canvas = document.getElementById('canvas'); + var canvas = document.querySelector('#canvas'); // As a default initial behavior, pop up an alert when webgl context is lost. To make your // application robust, you may want to override this behavior before shipping! // See http://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15.2 |
