From 01a8a36933d31dc809e337da5e73de68c92bd516 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Sat, 20 Oct 2018 16:13:48 -0700 Subject: [PATCH] fix example --- examples/SharedMemory/PhysicsClientExample.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SharedMemory/PhysicsClientExample.cpp b/examples/SharedMemory/PhysicsClientExample.cpp index 4b5317824..268ba4363 100644 --- a/examples/SharedMemory/PhysicsClientExample.cpp +++ b/examples/SharedMemory/PhysicsClientExample.cpp @@ -495,9 +495,9 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId) int objectUniqueId = 0; int linkIndex = -1; int shapeIndex = -1; - int textureIndex = -1; + int textureIndex = -2; double rgbaColor[4] = {0.0, 1.0, 0.0, 1.0}; - b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex, textureIndex); + b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex); b3UpdateVisualShapeRGBAColor(commandHandle, rgbaColor); b3SubmitClientCommand(m_physicsClientHandle, commandHandle); break;