Snap for 7771957 from fe16e9267d8dec34c94d3ea4183033b92cca2905 to sc-v2-release
Change-Id: I25715e642c2563cff70618df03df54d4e7674359
diff --git a/stream-servers/ColorBuffer.cpp b/stream-servers/ColorBuffer.cpp
index a01002f..100aad6 100644
--- a/stream-servers/ColorBuffer.cpp
+++ b/stream-servers/ColorBuffer.cpp
@@ -371,6 +371,7 @@
}
p_format = sGetUnsizedColorBufferFormat(p_format);
touch();
+ waitSync();
if (bindFbo(&m_fbo, m_tex)) {
GLint prevAlignment = 0;
@@ -394,6 +395,7 @@
}
p_format = sGetUnsizedColorBufferFormat(p_format);
touch();
+ waitSync();
GLuint tex = m_resizer->update(m_tex, width, height, rotation);
if (bindFbo(&m_scaleRotationFbo, tex)) {
GLint prevAlignment = 0;
@@ -417,6 +419,7 @@
}
touch();
+ waitSync();
#if DEBUG_CB_FBO
fprintf(stderr, "%s %d request width %d height %d\n", __func__, __LINE__,