OSDN Git Service

Workaround: disable checksum for a problem in glTexSubImage2D
authorYahan Zhou <yahan@google.com>
Tue, 12 Apr 2016 17:02:38 +0000 (10:02 -0700)
committerYahan Zhou <yahan@google.com>
Tue, 19 Apr 2016 01:04:22 +0000 (01:04 +0000)
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

index 93c4a6b..0a30d27 100644 (file)
@@ -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;
 }