From 46c5b009640d1526d839a72ca64daad394a93b7c Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Mon, 27 Mar 2017 23:09:24 -0700 Subject: [PATCH] report actual number of instances (enable sync transforms for physics server) --- examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp b/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp index c3ddb02f7..81aee4e8f 100644 --- a/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp @@ -134,7 +134,7 @@ void SimpleOpenGL2Renderer::writeSingleInstanceScaleToCPU(double* scale, int src int SimpleOpenGL2Renderer::getTotalNumInstances() const { - return 0; + return m_data->m_graphicsInstances.size(); } void SimpleOpenGL2Renderer::getCameraViewMatrix(float viewMat[16]) const