diff options
| author | 2009-08-05 13:57:03 -0700 | |
|---|---|---|
| committer | 2009-08-05 13:57:03 -0700 | |
| commit | 9bee51c42eb8c3daffe7d6fa483edbb1689b94d2 (patch) | |
| tree | ed0f12b149a98299f205173a5563c42599426fe3 /libs/rs/rsProgram.cpp | |
| parent | 9d1a3149f35b716caeda89dad53c0d8c45c6ca4b (diff) | |
Remove useless slot from ProgramVertex. Optimize GL state setup.
Diffstat (limited to 'libs/rs/rsProgram.cpp')
| -rw-r--r-- | libs/rs/rsProgram.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/rs/rsProgram.cpp b/libs/rs/rsProgram.cpp index 5a83fb7db000..6606daaaf488 100644 --- a/libs/rs/rsProgram.cpp +++ b/libs/rs/rsProgram.cpp @@ -34,12 +34,19 @@ Program::~Program() } -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() { |