Change where error are displayed
This commit is contained in:
@@ -27,5 +27,5 @@ if (WebGL.isWebGLAvailable()) {
|
||||
animate();
|
||||
} else {
|
||||
const warning = WebGL.getWebGLErrorMessage();
|
||||
document.getElementById('container').appendChild(warning);
|
||||
document.querySelector('#canvas').appendChild(warning);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user