Skip to content

Commit 4eb71a2

Browse files
authored
Fix GL.getSource bug introduced in #21184 (#21197)
This only seems to show up in `browser.test_sdl_ogl_regal`.
1 parent 8b90561 commit 4eb71a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_webgl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ for (/**@suppress{duplicate}*/var i = 0; i < {{{ GL_POOL_TEMP_BUFFERS_SIZE }}};
425425
getSource: (shader, count, string, length) => {
426426
var source = '';
427427
for (var i = 0; i < count; ++i) {
428-
var len = length ? {{{ makeGetValue('length', 'i*' * POINTER_SIZE, '*') }}} : undefined;
428+
var len = length ? {{{ makeGetValue('length', 'i*' + POINTER_SIZE, '*') }}} : undefined;
429429
source += UTF8ToString({{{ makeGetValue('string', 'i*' + POINTER_SIZE, '*') }}}, len);
430430
}
431431
#if LEGACY_GL_EMULATION

0 commit comments

Comments
 (0)