diff options
| author | Jason Sams <rjsams@android.com> | 2010-02-17 15:38:10 -0800 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-02-17 15:38:10 -0800 |
| commit | 8154954868694e1f233d87d4933a474518b1cb81 (patch) | |
| tree | 589a853c307533891684c168004512ce88724564 /rsProgramVertex.cpp | |
| parent | a33166c0bf203a25b9a2408c6854d6beb9ffcc77 (diff) | |
| download | android_frameworks_rs-8154954868694e1f233d87d4933a474518b1cb81.tar.gz android_frameworks_rs-8154954868694e1f233d87d4933a474518b1cb81.tar.bz2 android_frameworks_rs-8154954868694e1f233d87d4933a474518b1cb81.zip | |
Implement type collapsing for Elements and Types. Now if a user creates two or more identical objects we simply reuse the existing object rather than create a new one.
Diffstat (limited to 'rsProgramVertex.cpp')
| -rw-r--r-- | rsProgramVertex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp index 28f13d4e..a2b2df4d 100644 --- a/rsProgramVertex.cpp +++ b/rsProgramVertex.cpp @@ -364,7 +364,7 @@ ProgramVertexState::~ProgramVertexState() void ProgramVertexState::init(Context *rsc, int32_t w, int32_t h) { - RsElement e = Element::create(rsc, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 1); + RsElement e = (RsElement) Element::create(rsc, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 1); rsi_TypeBegin(rsc, e); rsi_TypeAdd(rsc, RS_DIMENSION_X, 48); |
