summaryrefslogtreecommitdiff
path: root/libs/rs/rsVertexArray.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2010-06-30 12:07:41 -0700
committer Jason Sams <rjsams@android.com> 2010-06-30 12:07:50 -0700
commite519b37f5ad8ef96c7a2ec6f1481e5a8e56f5fb9 (patch)
treecedd400187a27db4e98732dfbec8ca4ff0fb1d1c /libs/rs/rsVertexArray.cpp
parent9823d203f204ceba71fb4c4e2a05195bfc073b02 (diff)
Fix an uninitialized pointer.
Change-Id: If66a502b6b23d00c4a2dd02fb46912f6dee2866b
Diffstat (limited to 'libs/rs/rsVertexArray.cpp')
-rw-r--r--libs/rs/rsVertexArray.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/rs/rsVertexArray.cpp b/libs/rs/rsVertexArray.cpp
index ef892a51d7a5..6937a85665b9 100644
--- a/libs/rs/rsVertexArray.cpp
+++ b/libs/rs/rsVertexArray.cpp
@@ -44,6 +44,7 @@ void VertexArray::clearAll()
mAttribs[ct].clear();
}
mActiveBuffer = 0;
+ mActivePointer = NULL;
mCount = 0;
}
@@ -55,6 +56,7 @@ VertexArray::Attrib::Attrib()
void VertexArray::Attrib::set(const Attrib &a)
{
buffer = a.buffer;
+ ptr = a.ptr;
offset = a.offset;
type = a.type;
size = a.size;
@@ -70,6 +72,7 @@ void VertexArray::Attrib::clear()
type = 0;
size = 0;
stride = 0;
+ ptr = NULL;
normalized = false;
name.setTo("");
}