diff options
author | 2011-05-06 14:59:45 -0700 | |
---|---|---|
committer | 2011-05-06 14:59:45 -0700 | |
commit | 407cae950325682a56fe5373dd218a666da901ef (patch) | |
tree | 0a2a4bbc602f2a9ff4103cfd3641992d2a9214b4 /libs/rs/rsFBOCache.cpp | |
parent | 6b7d778fa7420a45e54a78fb3e034cb68ad6c4bd (diff) |
rsLib cleanup
Change-Id: Ifb66059338e3435ac79435296a650c44699921aa
Diffstat (limited to 'libs/rs/rsFBOCache.cpp')
-rw-r--r-- | libs/rs/rsFBOCache.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/rs/rsFBOCache.cpp b/libs/rs/rsFBOCache.cpp index 78aa8cea1264..0f33f6744d26 100644 --- a/libs/rs/rsFBOCache.cpp +++ b/libs/rs/rsFBOCache.cpp @@ -30,7 +30,7 @@ using namespace android::renderscript; FBOCache::FBOCache() { mFBOId = 0; - mDirty = false; + mDirty = true; mMaxTargets = 1; mColorTargets = new ObjectBaseRef<Allocation>[mMaxTargets]; } @@ -180,7 +180,7 @@ void FBOCache::setColorAttachment(Context *rsc) { #endif //ANDROID_RS_SERIALIZE } -void FBOCache::setupGL2(Context *rsc) { +void FBOCache::setup(Context *rsc) { #ifndef ANDROID_RS_SERIALIZE if (!mDirty) { return; @@ -205,5 +205,6 @@ void FBOCache::setupGL2(Context *rsc) { glBindFramebuffer(GL_FRAMEBUFFER, 0); glViewport(0, 0, rsc->getWidth(), rsc->getHeight()); } + mDirty = false; #endif //ANDROID_RS_SERIALIZE } |