summaryrefslogtreecommitdiff
path: root/driver/rsdGL.cpp
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-06-16 11:05:13 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-06-16 11:05:13 -0700
commita94952436aeb251f587c1bccdf94c7f75285dfe2 (patch)
tree7441b7c5b98f8a12c612e1e748cfcce875f10249 /driver/rsdGL.cpp
parent74a827988567a9d65954bb0d825a3ba4a97e2947 (diff)
downloadrs-a94952436aeb251f587c1bccdf94c7f75285dfe2.tar.gz
Adding ability to read back fbo data to renderscript
Change-Id: Ie684c26cbcde22f2483b43415dfc39a3de22c5a1
Diffstat (limited to 'driver/rsdGL.cpp')
-rw-r--r--driver/rsdGL.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/rsdGL.cpp b/driver/rsdGL.cpp
index a70589b5..3ff03b4d 100644
--- a/driver/rsdGL.cpp
+++ b/driver/rsdGL.cpp
@@ -39,6 +39,7 @@
#include "rsContext.h"
#include "rsdShaderCache.h"
#include "rsdVertexArray.h"
+#include "rsdFrameBufferObj.h"
using namespace android;
using namespace android::renderscript;
@@ -294,6 +295,7 @@ bool rsdGLInit(const Context *rsc) {
dc->gl.shaderCache = new RsdShaderCache();
dc->gl.vertexArrayState = new RsdVertexArrayState();
dc->gl.vertexArrayState->init(dc->gl.gl.maxVertexAttribs);
+ dc->gl.currentFrameBuffer = NULL;
LOGV("initGLThread end %p", rsc);
return true;