diff options
Diffstat (limited to 'rsFBOCache.cpp')
-rw-r--r-- | rsFBOCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsFBOCache.cpp b/rsFBOCache.cpp index d50f3e08..1da327fe 100644 --- a/rsFBOCache.cpp +++ b/rsFBOCache.cpp @@ -50,7 +50,7 @@ void FBOCache::bindColorTarget(Context *rsc, Allocation *a, uint32_t slot) { return; } if (a != NULL) { - if (!a->getIsTexture()) { + if (!(a->getIsTexture() || (a->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT))) { ALOGE("Invalid Color Target"); return; } |