summaryrefslogtreecommitdiffstats
path: root/cpp/Allocation.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-11-14 16:51:46 -0800
committerTim Murray <timmurray@google.com>2012-11-14 16:52:42 -0800
commitbaca6c3c3d79a324c7976ba873afdded0b6bcfb5 (patch)
treed3484d6c766221efd762d311c56dcb48d2f61d4b /cpp/Allocation.cpp
parent3cd44af22622898d3000b2b3c4c408cede294152 (diff)
downloadandroid_frameworks_rs-baca6c3c3d79a324c7976ba873afdded0b6bcfb5.tar.gz
android_frameworks_rs-baca6c3c3d79a324c7976ba873afdded0b6bcfb5.tar.bz2
android_frameworks_rs-baca6c3c3d79a324c7976ba873afdded0b6bcfb5.zip
Fix uninitialized variable bug, add finish()
Change-Id: I79fb54800ad8657c93c7989a5c21838d41f24050
Diffstat (limited to 'cpp/Allocation.cpp')
-rw-r--r--cpp/Allocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/Allocation.cpp b/cpp/Allocation.cpp
index 7275261a..c07e056f 100644
--- a/cpp/Allocation.cpp
+++ b/cpp/Allocation.cpp
@@ -37,7 +37,8 @@ void Allocation::updateCacheInfo(sp<const Type> t) {
}
Allocation::Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage) :
- BaseObj(id, rs) {
+ BaseObj(id, rs), mSelectedY(0), mSelectedZ(0), mSelectedLOD(0),
+ mSelectedFace(RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X) {
if ((usage & ~(RS_ALLOCATION_USAGE_SCRIPT |
RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE |