diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-07-20 09:41:50 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-20 09:41:50 -0700 |
commit | eac3503deb95bee21f811cc14ad26fa5aeca98f0 (patch) | |
tree | 32b1b307a415c5475c52ef221d2f1f1f7fe24e87 | |
parent | caed51bcc23303182ffffb8b2db04647845bc1f5 (diff) | |
parent | 10ed04935d19ff87169499a7c1c7d8256cf13fe0 (diff) | |
download | frameworks_base-eac3503deb95bee21f811cc14ad26fa5aeca98f0.zip frameworks_base-eac3503deb95bee21f811cc14ad26fa5aeca98f0.tar.gz frameworks_base-eac3503deb95bee21f811cc14ad26fa5aeca98f0.tar.bz2 |
Merge "Correctly call glviewport when surface changes."
-rw-r--r-- | libs/rs/rsContext.cpp | 1 | ||||
-rw-r--r-- | libs/rs/rsFBOCache.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index 447a7ff..decd9f1 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -442,6 +442,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; |