commit | cfb1d11ce6826fce7241d316d8b7dcab661f63a6 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Wed Aug 05 13:57:03 2009 -0700 |
committer | Jason Sams <rjsams@android.com> | Wed Aug 05 13:57:03 2009 -0700 |
tree | a4dc3f47c27fec9f106bc98c9bb7c4e380bf8ec1 | |
parent | f1fbd13b4c0c00cd1f95b5a3a8d0d80dbeb56e41 [diff] [blame] |
Remove useless slot from ProgramVertex. Optimize GL state setup.
diff --git a/rsProgram.cpp b/rsProgram.cpp index 5a83fb7..6606daa 100644 --- a/rsProgram.cpp +++ b/rsProgram.cpp
@@ -34,12 +34,19 @@ } -void Program::setAllocation(Allocation *alloc) +void Program::bindAllocation(Allocation *alloc) { mConstants.set(alloc); mDirty = true; } +void Program::checkUpdatedAllocation(const Allocation *alloc) +{ + if (mConstants.get() == alloc) { + mDirty = true; + } +} + void Program::setupGL() {