diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-04-01 14:19:01 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-04-01 14:19:01 -0700 |
commit | 8e90f2bc1fa35a2dc7bd2aab8b8241b628800218 (patch) | |
tree | c2b3e36a41b00d7ef8be23d6441ff44893f686ab /libs/rs/rsComponent.cpp | |
parent | 397de169e5462bf0c62506827819f93336b3f123 (diff) | |
download | frameworks_base-8e90f2bc1fa35a2dc7bd2aab8b8241b628800218.zip frameworks_base-8e90f2bc1fa35a2dc7bd2aab8b8241b628800218.tar.gz frameworks_base-8e90f2bc1fa35a2dc7bd2aab8b8241b628800218.tar.bz2 |
First draft of fbo in renderscript.
Updating samples and benchmark
Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
Diffstat (limited to 'libs/rs/rsComponent.cpp')
-rw-r--r-- | libs/rs/rsComponent.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsComponent.cpp b/libs/rs/rsComponent.cpp index 4c4987a..e2ae043 100644 --- a/libs/rs/rsComponent.cpp +++ b/libs/rs/rsComponent.cpp @@ -18,6 +18,7 @@ #ifndef ANDROID_RS_SERIALIZE #include <GLES/gl.h> +#include <GLES2/gl2.h> #endif using namespace android; @@ -207,6 +208,7 @@ uint32_t Component::getGLFormat() const { case RS_KIND_PIXEL_LA: return GL_LUMINANCE_ALPHA; case RS_KIND_PIXEL_RGB: return GL_RGB; case RS_KIND_PIXEL_RGBA: return GL_RGBA; + case RS_KIND_PIXEL_DEPTH: return GL_DEPTH_COMPONENT16; default: break; } #endif //ANDROID_RS_SERIALIZE |