mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-04 04:19:22 +00:00
fix flipped tinyrenderer image
This commit is contained in:
@@ -631,7 +631,7 @@ void PhysicsClientExample::stepSimulation(float deltaTime)
|
||||
int bytesPerPixel = 4;
|
||||
|
||||
int pixelIndex = (xIndex+yIndex*imageData.m_pixelWidth)*bytesPerPixel;
|
||||
m_canvas->setPixel(m_canvasIndex,i,camVisualizerHeight-1-j,
|
||||
m_canvas->setPixel(m_canvasIndex,i,j,
|
||||
|
||||
imageData.m_rgbColorData[pixelIndex],
|
||||
imageData.m_rgbColorData[pixelIndex+1],
|
||||
|
||||
Reference in New Issue
Block a user