diff --git a/Siv3D/src/Siv3D-Platform/Web/Siv3D/Renderer/GLES3/CRenderer_GLES3.cpp b/Siv3D/src/Siv3D-Platform/Web/Siv3D/Renderer/GLES3/CRenderer_GLES3.cpp index c75a4443b..6b620b951 100644 --- a/Siv3D/src/Siv3D-Platform/Web/Siv3D/Renderer/GLES3/CRenderer_GLES3.cpp +++ b/Siv3D/src/Siv3D-Platform/Web/Siv3D/Renderer/GLES3/CRenderer_GLES3.cpp @@ -70,7 +70,7 @@ namespace s3d ::glewExperimental = GL_TRUE; if (::glewInit() != GLEW_OK) { - throw EngineError(U"glefInit() failed"); + throw EngineError(U"glewInit() failed"); } if (SIV3D_BUILD(DEBUG) && GLEW_ARB_debug_output) diff --git a/Test/Siv3DTest.js b/Test/Siv3DTest.js index 5dfeb0d74..37c252efb 100644 --- a/Test/Siv3DTest.js +++ b/Test/Siv3DTest.js @@ -12,7 +12,7 @@ Module.preRun = [ // global.navigator = { getGamepads() { return []; } - } + }; global.window = { addEventListener() {}, @@ -21,7 +21,7 @@ Module.preRun = [ getVoices() { return []; } }, screen: {} - } + }; global.document = { createElement() { @@ -31,7 +31,7 @@ Module.preRun = [ removeEventListener() {}, }; }, - } + }; Module.canvas = { style: {}, @@ -40,15 +40,21 @@ Module.preRun = [ }, addEventListener() {}, removeEventListener() {}, - } + }; global.FileReader = class { constructor() {} - } + }; global.Notification = { permission: "granted", requestPermission() {} - } + }; + + global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; + + global.requestAnimationFrame = function(callback) { + setTimeout(callback, 16); + }; } ];