summaryrefslogtreecommitdiffstats
path: root/rsComponent.cpp
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-04-01 14:19:01 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-04-01 14:19:01 -0700
commit7d9c5ffccb7a5e682860f752403e5a03aed587be (patch)
tree34071eadb0ec94088dd73d1ebca75d01d48d51e3 /rsComponent.cpp
parent8d43eafdd2684b7bcb2554e65676dc914b7eabd7 (diff)
downloadandroid_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.cpp2
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