summaryrefslogtreecommitdiffstats
path: root/libs/rs
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-07-19 17:50:29 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-07-19 17:50:29 -0700
commit10ed04935d19ff87169499a7c1c7d8256cf13fe0 (patch)
treec188e9f18f6e519439e8d72ab7e7f40489c0fbf4 /libs/rs
parentcadaa3a9839d152cdbdb8c3d5070d315910da5dd (diff)
downloadframeworks_base-10ed04935d19ff87169499a7c1c7d8256cf13fe0.zip
frameworks_base-10ed04935d19ff87169499a7c1c7d8256cf13fe0.tar.gz
frameworks_base-10ed04935d19ff87169499a7c1c7d8256cf13fe0.tar.bz2
Correctly call glviewport when surface changes.
Change-Id: I7ef1539e39ea67245bac5ee410deb5918fc5dfcf
Diffstat (limited to 'libs/rs')
-rw-r--r--libs/rs/rsContext.cpp1
-rw-r--r--libs/rs/rsFBOCache.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 8798612..1932108 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -446,6 +446,7 @@ void Context::setSurface(uint32_t w, uint32_t h, RsNativeWindow sur) {
if (mWidth && mHeight) {
mStateVertex.updateSize(this);
+ mFBOCache.updateSize();
}
}
diff --git a/libs/rs/rsFBOCache.h b/libs/rs/rsFBOCache.h
index f42e1f3..5d58ba4 100644
--- a/libs/rs/rsFBOCache.h
+++ b/libs/rs/rsFBOCache.h
@@ -38,6 +38,7 @@ public:
void resetAll(Context *);
void setup(Context *);
+ void updateSize() { mDirty = true; }
struct Hal {
mutable void *drv;