Skip to content

Commit

Permalink
Fixes to build with latest Emscripten and spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cwoffenden committed Mar 5, 2024
1 parent 7e0dbde commit d6460b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (EMSCRIPTEN)
# -s EVAL_CTORS=1

# Linker flags to optimize for smallest output code size
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ENVIRONMENT=web -s TEXTDECODER=2 -s ABORTING_MALLOC=0 -s ALLOW_MEMORY_GROWTH=0 -s SUPPORT_ERRNO=0 -s MALLOC=emmalloc -s NO_FILESYSTEM=1 --output_eol=linux")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s ENVIRONMENT=web -s TEXTDECODER=2 -s ABORTING_MALLOC=0 -s ALLOW_MEMORY_GROWTH=0 -s MALLOC=emmalloc -s NO_FILESYSTEM=1 --output_eol=linux")
# -s MINIMAL_RUNTIME=2
elseif (WIN32)
file(GLOB_RECURSE platform_sources src/win/*)
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ static bool redraw() {

WGPURenderPassColorAttachment colorDesc = {};
colorDesc.view = backBufView;
colorDesc.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED;
colorDesc.loadOp = WGPULoadOp_Clear;
colorDesc.storeOp = WGPUStoreOp_Store;
colorDesc.clearValue.r = 0.3f;
Expand Down

0 comments on commit d6460b6

Please sign in to comment.