Skip to content

Commit

Permalink
[wasm64] Fix glUniformMatrix4fv (#21235)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Feb 1, 2024
1 parent 71d452a commit f6a7e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ jobs:
browser_2gb.test_gles2_uniform_arrays
browser_2gb.test_fetch_to_memory
browser_2gb.test_emscripten_animate_canvas_element_size_manual_css
browser_2gb.test_fulles2_sdlproc
"
test-browser-chrome-wasm64-4gb:
executor: bionic
Expand All @@ -831,6 +832,7 @@ jobs:
browser64_4gb.test_clientside_vertex_arrays_es3
browser64_4gb.test_fetch*
browser64_4gb.test_emscripten_animate_canvas_element_size_manual_css
browser64_4gb.test_fulles2_sdlproc
"
test-browser-firefox:
executor: bionic
Expand Down
2 changes: 1 addition & 1 deletion src/library_webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ for (/**@suppress{duplicate}*/var i = 0; i < {{{ GL_POOL_TEMP_BUFFERS_SIZE }}};
var view = miniTempWebGLFloatBuffers[4*count-1];
// hoist the heap out of the loop for size and for pthreads+growth.
var heap = HEAPF32;
value >>= 2;
value = {{{ getHeapOffset('value', 'float') }}};
for (var i = 0; i < 4 * count; i += 4) {
var dst = value + i;
view[i] = heap[dst];
Expand Down

0 comments on commit f6a7e5f

Please sign in to comment.