diff --git a/src/lib/libwebgl.js b/src/lib/libwebgl.js index 069e6ae4996d2..53a1d82435144 100644 --- a/src/lib/libwebgl.js +++ b/src/lib/libwebgl.js @@ -3224,7 +3224,7 @@ for (/**@suppress{duplicate}*/var i = 0; i <= {{{ GL_POOL_TEMP_BUFFERS_SIZE }}}; '__VERSION__': () => source.includes('#version 300') ? 300 : 100 }); #if GL_DEBUG - dbg(`Shader source after preprocessing: ${source}`; + dbg(`Shader source after preprocessing: ${source}`); #endif #endif // ~GL_EXPLICIT_UNIFORM_LOCATION || GL_EXPLICIT_UNIFORM_BINDING @@ -3253,7 +3253,7 @@ for (/**@suppress{duplicate}*/var i = 0; i <= {{{ GL_POOL_TEMP_BUFFERS_SIZE }}}; GL.shaders[shader].explicitUniformLocations = explicitUniformLocations; #if GL_DEBUG - dbg(`Shader source after removing layout location directives: ${source}`; + dbg(`Shader source after removing layout location directives: ${source}`); dbg('Explicit uniform locations recorded in the shader:'); console.dir(explicitUniformLocations); #endif @@ -3314,7 +3314,7 @@ for (/**@suppress{duplicate}*/var i = 0; i <= {{{ GL_POOL_TEMP_BUFFERS_SIZE }}}; source = source.replace(/layout\s*\(\s*binding\s*=\s*([-\d]+)\s*,\s*(.*?)\)/g, 'layout($2)'); // "layout(binding = 1, std140)" -> "layout(std140)" #if GL_DEBUG - dbg(`Shader source after removing layout binding directives: ${source}`; + dbg(`Shader source after removing layout binding directives: ${source}`); dbg('Sampler binding locations recorded in the shader:'); console.dir(samplerBindings); dbg('Uniform binding locations recorded in the shader:'); diff --git a/test/test_browser.py b/test/test_browser.py index 5967624bbae99..598992b75a31c 100644 --- a/test/test_browser.py +++ b/test/test_browser.py @@ -2664,7 +2664,7 @@ def test_html5_webgl_api(self, args): def test_webgl_preprocessor_variables(self, opts): if '-DWEBGL_VERSION=2' in opts and webgl2_disabled(): self.skipTest('This test requires WebGL2 to be available') - self.btest_exit('webgl_preprocessor_variables.c', cflags=['-lGL'] + opts) + self.btest_exit('webgl_preprocessor_variables.c', cflags=['-lGL', '-sGL_DEBUG'] + opts) @requires_graphics_hardware def test_webgl2_ubos(self):