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 | 7d9c5ffccb7a5e682860f752403e5a03aed587be (patch) | |
| tree | 34071eadb0ec94088dd73d1ebca75d01d48d51e3 /rsComponent.cpp | |
| parent | 8d43eafdd2684b7bcb2554e65676dc914b7eabd7 (diff) | |
| download | android_frameworks_rs-7d9c5ffccb7a5e682860f752403e5a03aed587be.tar.gz android_frameworks_rs-7d9c5ffccb7a5e682860f752403e5a03aed587be.tar.bz2 android_frameworks_rs-7d9c5ffccb7a5e682860f752403e5a03aed587be.zip | |
First draft of fbo in renderscript.
Updating samples and benchmark
Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
Diffstat (limited to 'rsComponent.cpp')
| -rw-r--r-- | rsComponent.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rsComponent.cpp b/rsComponent.cpp index 4c4987aa..e2ae0436 100644 --- a/rsComponent.cpp +++ b/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 |
