diff options
author | bohu <bohu@google.com> | 2014-11-17 16:40:52 -0800 |
---|---|---|
committer | bohu <bohu@google.com> | 2014-11-17 16:40:52 -0800 |
commit | 1a401b4da523e68e67c1848eea92f62960bde38a (patch) | |
tree | a24ba292d7c25188941888489feb3c53b03f969d /shared/OpenglCodecCommon | |
parent | 6c5eae09fecb45056703b6207991c7d585ca0a18 (diff) | |
download | goldfish-opengl-1a401b4da523e68e67c1848eea92f62960bde38a.tar.gz |
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
Diffstat (limited to 'shared/OpenglCodecCommon')
-rw-r--r-- | shared/OpenglCodecCommon/GLClientState.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/OpenglCodecCommon/GLClientState.cpp b/shared/OpenglCodecCommon/GLClientState.cpp index a84e8562..0826a14a 100644 --- a/shared/OpenglCodecCommon/GLClientState.cpp +++ b/shared/OpenglCodecCommon/GLClientState.cpp @@ -35,6 +35,7 @@ GLClientState::GLClientState(int nLocations) 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; |