revert accidently renaming of m_depthvalues4

This commit is contained in:
Erwin Coumans
2016-08-12 13:55:37 -07:00
parent 4abe083388
commit c75bebcafe
5 changed files with 6 additions and 6 deletions

View File

@@ -736,7 +736,7 @@ void PhysicsClientExample::stepSimulation(float deltaTime)
if (m_canvasDepthIndex >=0)
{
int depthPixelIndex = (xIndex+yIndex*imageData.m_pixelWidth);
float depthValue = imageData.m_depthValues4[depthPixelIndex];
float depthValue = imageData.m_depthValues[depthPixelIndex];
//todo: rescale the depthValue to [0..255]
if (depthValue>-1e20)
{
@@ -770,7 +770,7 @@ void PhysicsClientExample::stepSimulation(float deltaTime)
if (m_canvasDepthIndex >=0)
{
int depthPixelIndex = (xIndex+yIndex*imageData.m_pixelWidth);
float depthValue = imageData.m_depthValues4[depthPixelIndex];
float depthValue = imageData.m_depthValues[depthPixelIndex];
//todo: rescale the depthValue to [0..255]
if (depthValue>-1e20)
{