diff options
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index d05e4cd2..25a2990e 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -493,7 +493,8 @@ bool RS::init(std::string &name, int targetApi, uint32_t flags) { return false; } - if (flags >= RS_CONTEXT_MAX) { + if (flags & ~(RS_CONTEXT_SYNCHRONOUS | RS_CONTEXT_LOW_LATENCY | + RS_CONTEXT_LOW_POWER)) { ALOGE("Invalid flags passed"); return false; } |
