Skip to content

Commit

Permalink
Fix GL.getSource bug introduced in #21184 (#21197)
Browse files Browse the repository at this point in the history
This only seems to show up in `browser.test_sdl_ogl_regal`.
  • Loading branch information
sbc100 authored Jan 29, 2024
1 parent 8b90561 commit 4eb71a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library_webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ for (/**@suppress{duplicate}*/var i = 0; i < {{{ GL_POOL_TEMP_BUFFERS_SIZE }}};
getSource: (shader, count, string, length) => {
var source = '';
for (var i = 0; i < count; ++i) {
var len = length ? {{{ makeGetValue('length', 'i*' * POINTER_SIZE, '*') }}} : undefined;
var len = length ? {{{ makeGetValue('length', 'i*' + POINTER_SIZE, '*') }}} : undefined;
source += UTF8ToString({{{ makeGetValue('string', 'i*' + POINTER_SIZE, '*') }}}, len);
}
#if LEGACY_GL_EMULATION
Expand Down

0 comments on commit 4eb71a2

Please sign in to comment.