From: Yahan Zhou Date: Tue, 12 Apr 2016 17:02:38 +0000 (-0700) Subject: Workaround: disable checksum for a problem in glTexSubImage2D X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cc56e9ac696535a794cdecae0a559e4b876c522e;p=android-x86%2Fdevice-generic-goldfish-opengl.git 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) --- 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; }