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 | 4a01a642b03e367e7a0884bd2140e46b09e494ef (patch) | |
tree | 0a415f693f58349d6162e8d265b83a868c848752 /opengl | |
parent | 6aedefacbd932dd340d0f7e96b6f6aff2aba4558 (diff) | |
download | android_device_generic_goldfish-4a01a642b03e367e7a0884bd2140e46b09e494ef.tar.gz android_device_generic_goldfish-4a01a642b03e367e7a0884bd2140e46b09e494ef.tar.bz2 android_device_generic_goldfish-4a01a642b03e367e7a0884bd2140e46b09e494ef.zip |
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 'opengl')
-rw-r--r-- | opengl/shared/OpenglCodecCommon/GLClientState.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ 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; |