Fixed uniform mapping crash 19/38919/3
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 30 Apr 2015 11:15:52 +0000 (12:15 +0100)
committerFrancisco Santos <f1.santos@samsung.com>
Fri, 1 May 2015 09:29:38 +0000 (10:29 +0100)
Change-Id: I7499c18ddb5ad4f878c6394c68c695ab03249ac8

dali/internal/update/node-attachments/scene-graph-renderer-attachment.cpp

index ea33d06..2de8fec 100644 (file)
@@ -357,7 +357,7 @@ void RendererAttachment::DoPrepareRender( BufferIndex updateBufferIndex )
       localMap.Resize( oldMap.Count() );
 
       unsigned int index=0;
-      for( CollectedUniformMap::Iterator iter = oldMap.Begin(), end = oldMap.End() ; iter != end ; ++iter )
+      for( CollectedUniformMap::Iterator iter = oldMap.Begin(), end = oldMap.End() ; iter != end ; ++iter, ++index )
       {
         localMap[index] = *iter;
       }