commit | 4a01a642b03e367e7a0884bd2140e46b09e494ef | [log] [tgz] |
---|---|---|
author | bohu <bohu@google.com> | Mon Nov 17 16:40:52 2014 -0800 |
committer | bohu <bohu@google.com> | Mon Nov 17 16:40:52 2014 -0800 |
tree | 0a415f693f58349d6162e8d265b83a868c848752 | |
parent | 6aedefacbd932dd340d0f7e96b6f6aff2aba4558 [diff] |
Properly initialize GLClientState's m_states The data pointer of m_states[i] should be initialized to 0; otherwise it contains garbage. Change-Id: Ibfa9bb6fec395de6ac98a3e6b91d4c6ff4143f2c
diff --git a/opengl/shared/OpenglCodecCommon/GLClientState.cpp b/opengl/shared/OpenglCodecCommon/GLClientState.cpp index a84e856..0826a14 100644 --- a/opengl/shared/OpenglCodecCommon/GLClientState.cpp +++ b/opengl/shared/OpenglCodecCommon/GLClientState.cpp
@@ -35,6 +35,7 @@ for (int i = 0; i < m_nLocations; i++) { m_states[i].enabled = 0; m_states[i].enableDirty = false; + m_states[i].data = 0; } m_currentArrayVbo = 0; m_currentIndexVbo = 0;