Merge "Correctly call glviewport when surface changes."
diff --git a/rsContext.cpp b/rsContext.cpp
index 447a7ff..decd9f1 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -442,6 +442,7 @@
 
     if (mWidth && mHeight) {
         mStateVertex.updateSize(this);
+        mFBOCache.updateSize();
     }
 }
 
diff --git a/rsFBOCache.h b/rsFBOCache.h
index f42e1f3..5d58ba4 100644
--- a/rsFBOCache.h
+++ b/rsFBOCache.h
@@ -38,6 +38,7 @@
     void resetAll(Context *);
 
     void setup(Context *);
+    void updateSize() { mDirty = true; }
 
     struct Hal {
         mutable void *drv;