summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsFBOCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsFBOCache.cpp')
-rw-r--r--libs/rs/rsFBOCache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/rs/rsFBOCache.cpp b/libs/rs/rsFBOCache.cpp
index 78aa8ce..0f33f67 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
}