commit | 10ed04935d19ff87169499a7c1c7d8256cf13fe0 | [log] [tgz] |
---|---|---|
author | Alex Sakhartchouk <alexst@google.com> | Tue Jul 19 17:50:29 2011 -0700 |
committer | Alex Sakhartchouk <alexst@google.com> | Tue Jul 19 17:50:29 2011 -0700 |
tree | c188e9f18f6e519439e8d72ab7e7f40489c0fbf4 | |
parent | cadaa3a9839d152cdbdb8c3d5070d315910da5dd [diff] |
Correctly call glviewport when surface changes. Change-Id: I7ef1539e39ea67245bac5ee410deb5918fc5dfcf
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 @@ 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 @@ void resetAll(Context *); void setup(Context *); + void updateSize() { mDirty = true; } struct Hal { mutable void *drv;