aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2014-09-27 13:24:19 +0200
committerRainer Hochecker <fernetmenta@online.de>2014-09-27 13:24:19 +0200
commit1ba69b4513f14ea4219ce6ba4dbe58313b37ad1d (patch)
tree2681140b99102c41b1f22096b1aae75b57781a63
parentb9764bc43ae2fe78b8e52952bf5903186f242990 (diff)
renderer: reset render buffers on flush
-rw-r--r--xbmc/cores/VideoRenderers/RenderManager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/xbmc/cores/VideoRenderers/RenderManager.cpp b/xbmc/cores/VideoRenderers/RenderManager.cpp
index 64273f8be8..b8044c5ef9 100644
--- a/xbmc/cores/VideoRenderers/RenderManager.cpp
+++ b/xbmc/cores/VideoRenderers/RenderManager.cpp
@@ -481,6 +481,14 @@ bool CXBMCRenderManager::Flush()
else
return true;
}
+
+ m_queued.clear();
+ m_discard.clear();
+ m_free.clear();
+ m_presentsource = 0;
+ for (int i = 1; i < m_QueueSize; i++)
+ m_free.push_back(i);
+
return true;
}