Skip to content

Commit ec43e30

Browse files
committed
[wasm64] Fix glSharedSource in >4gb mode and enable test under wasm64
1 parent a23fdef commit ec43e30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ jobs:
816816
browser64_4gb.test_async_*
817817
browser64_4gb.test_audio_worklet*
818818
browser64_4gb.test_emscripten_log
819+
browser64_4gb.test_clientside_vertex_arrays_es3
819820
"
820821
test-browser-firefox:
821822
executor: bionic

src/library_webgl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ 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*4', 'i32') }}} : -1;
429-
source += UTF8ToString({{{ makeGetValue('string', 'i*4', 'i32') }}}, len < 0 ? undefined : len);
428+
var len = length ? {{{ makeGetValue('length', 'i*' * POINTER_SIZE, '*') }}} : -1;
429+
source += UTF8ToString({{{ makeGetValue('string', 'i*' + POINTER_SIZE, '*') }}}, len < 0 ? undefined : len);
430430
}
431431
#if LEGACY_GL_EMULATION
432432
// Let's see if we need to enable the standard derivatives extension

0 commit comments

Comments
 (0)