Discard render instruction if it is empty
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-instruction-container.cpp
index 3cbff8a..9b16af8 100644 (file)
@@ -80,6 +80,10 @@ RenderInstruction& RenderInstructionContainer::At( BufferIndex bufferIndex, size
   return *mInstructions[ bufferIndex ][ index ];
 }
 
+void RenderInstructionContainer::DiscardCurrentInstruction( BufferIndex bufferIndex )
+{
+  mIndex[ bufferIndex ]--;
+}
 
 } // namespace SceneGraph