Skip to content

Commit

Permalink
Granite: Fix wasm sample
Browse files Browse the repository at this point in the history
Summary: Fix wasm sample

Reviewed By: MichaelTay

Differential Revision: D47690681

fbshipit-source-id: b6fe7915c7d762001f9bbecfdfff2be83d8abd00
  • Loading branch information
gnolnuhc authored and facebook-github-bot committed Jul 22, 2023
1 parent 1f96c0f commit 4951df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/wasm/Tiny_Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ void onDraw(void*) {
commands->bindBuffer(0, BindTarget::kAllGraphics, ubPerFrame_[frameIndex], 0);
commands->bindTexture(0, igl::BindTarget::kFragment, texture0_.get());
commands->bindTexture(1, igl::BindTarget::kFragment, texture1_.get());
commands->bindSamplerState(0, igl::BindTarget::kFragment, sampler_);
commands->bindSamplerState(0, igl::BindTarget::kFragment, sampler_.get());
// Draw 2 cubes: we use uniform buffer to update matrices
for (uint32_t i = 0; i != kNumCubes; i++) {
commands->bindBuffer(
Expand Down

0 comments on commit 4951df8

Please sign in to comment.