From b62501d04d5be12d01d03c188cab8b27d2b8d576 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Mon, 12 Mar 2018 19:40:13 -0700 Subject: [PATCH] fix loadTexture for tinyrenderer --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 8e487517b..5c2f962b1 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -8678,7 +8678,7 @@ bool PhysicsServerCommandProcessor::processLoadTextureCommand(const struct Share int uid = -1; if (m_data->m_pluginManager.getRenderInterface()) { - m_data->m_pluginManager.getRenderInterface()->loadTextureFile(relativeFileName); + uid = m_data->m_pluginManager.getRenderInterface()->loadTextureFile(relativeFileName); } if(uid>=0) {