diff --git a/samples/wasm/Tiny_Mesh.cpp b/samples/wasm/Tiny_Mesh.cpp index 61afaffc7c..7b3b6ee274 100644 --- a/samples/wasm/Tiny_Mesh.cpp +++ b/samples/wasm/Tiny_Mesh.cpp @@ -402,7 +402,7 @@ void onDraw(void*) { commands->bindViewport(viewport); commands->bindScissorRect(scissor); commands->pushDebugGroupLabel("Render Mesh", igl::Color(1, 0, 0)); - commands->bindVertexBuffer(0, vb0_); + commands->bindVertexBuffer(0, *vb0_); commands->bindDepthStencilState(depthStencilState_); commands->bindBuffer(0, ubPerFrame_[frameIndex].get()); commands->bindTexture(0, igl::BindTarget::kFragment, texture0_.get()); diff --git a/samples/wasm/Triangle.cpp b/samples/wasm/Triangle.cpp index c492a36afe..346270d1ed 100644 --- a/samples/wasm/Triangle.cpp +++ b/samples/wasm/Triangle.cpp @@ -210,7 +210,7 @@ static void render(const std::shared_ptr& nativeDrawable) { commands->bindViewport(viewport); commands->bindScissorRect(scissor); commands->pushDebugGroupLabel("Render Triangle", igl::Color(1, 0, 0)); - commands->draw(PrimitiveType::Triangle, 0, 3); + commands->draw(3, 0, 3); commands->popDebugGroupLabel(); commands->endEncoding();