diff options
author | Jason Sams <jsams@google.com> | 2012-04-02 14:41:54 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2012-04-02 14:41:54 -0700 |
commit | b322033c13487a174bb9c26466e9684d1ff4de8d (patch) | |
tree | aee8ae3877befa8b8dd1b89412497314656931f2 /rsFBOCache.cpp | |
parent | f31fa924c30b2d003ccd6a4a681de8a1caa9af01 (diff) | |
download | rs-b322033c13487a174bb9c26466e9684d1ff4de8d.tar.gz |
Implement IO_OUTPUT + SurfaceTexture
Change-Id: Id96fecd6d768196523330c5eda77c4ee86b9bd3c
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; } |