From cc56e9ac696535a794cdecae0a559e4b876c522e Mon Sep 17 00:00:00 2001 From: Yahan Zhou Date: Tue, 12 Apr 2016 10:02:38 -0700 Subject: [PATCH] Workaround: disable checksum for a problem in glTexSubImage2D This is a temporary workaround for a problem in glTexSubImage2D. It disables the GL checksum to avoid crashes. Please revert this CL when the root cause is solved. Change-Id: I8401449e42da87f580f119982a1bcb1b6b9a4c8b (cherry picked from commit c1a6ab7b5ce1e23cf65a8e936860bcea879b6eef) --- system/OpenglSystemCommon/HostConnection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp index 93c4a6b..0a30d27 100644 --- a/system/OpenglSystemCommon/HostConnection.cpp +++ b/system/OpenglSystemCommon/HostConnection.cpp @@ -132,7 +132,9 @@ renderControl_encoder_context_t *HostConnection::rcEncoder() { if (!m_rcEnc) { m_rcEnc = new renderControl_encoder_context_t(m_stream, checksumHelper()); - setChecksumHelper(m_rcEnc); + // TODO: disable checksum as a workaround in a glTexSubImage2D problem + // Uncomment the following line when the root cause is solved + //setChecksumHelper(m_rcEnc); } return m_rcEnc; } -- 2.11.0