WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 6fae296

Browse files
committed
Examples: Emscripten: Fix build. (#3632)
1 parent 28ba54a commit 6fae296

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/CHANGELOG.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Other Changes:
6060
- Inputs: Fixed IsMouseClicked() repeat mode rate being half of keyboard repeat rate.
6161
- ColorEdit: Fixed text baseline alignment after a SameLine() after a ColorEdit() with visible label.
6262
- Stack Tool: Added option to copy item path to clipboard. (#4631)
63+
- Drawlist: Fixed PathArcTo() emitting terminating vertices too close to arc vertices. (#4993) [@thedmd]
6364
- Misc: Fixed IsAnyItemHovered() returning false when using navigation.
6465
- Misc: Added IMGUI_STB_SPRINTF_FILENAME to support custom path to stb_sprintf. (#5068, #2954) [@jakubtomsu]
6566
- Misc: Added constexpr to ImVec2/ImVec4 inline constructors. (#4995) [@Myriachan]
@@ -68,7 +69,7 @@ Other Changes:
6869
- Misc: Updated stb_rect_pack.h from 1.00 to 1.01 (minor). (#5075)
6970
- Misc: binary_to_compressed_c tool: Added -nostatic option. (#5021) [@podsvirov]
7071
- ImVector: Fixed erase() with empty range. (#5009) [@thedmd]
71-
- Drawlist: Fixed PathArcTo() emitting terminating vertices too close to arc vertices. (#4993) [@thedmd]
72+
- Examples: Emscripten: Fix building for latest Emscripten specs. (#3632)
7273

7374

7475
-----------------------------------------------------------------------

examples/example_emscripten_wgpu/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static void main_loop(void* window)
217217

218218
WGPURenderPassEncoder pass = wgpuCommandEncoderBeginRenderPass(encoder, &render_pass_desc);
219219
ImGui_ImplWGPU_RenderDrawData(ImGui::GetDrawData(), pass);
220-
wgpuRenderPassEncoderEndPass(pass);
220+
wgpuRenderPassEncoderEnd(pass);
221221

222222
WGPUCommandBufferDescriptor cmd_buffer_desc = {};
223223
WGPUCommandBuffer cmd_buffer = wgpuCommandEncoderFinish(encoder, &cmd_buffer_desc);

0 commit comments

Comments
 (0)