Merge "Correctly call glviewport when surface changes."

This commit is contained in:
Alex Sakhartchouk
2011-07-20 09:41:50 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -442,6 +442,7 @@ void Context::setSurface(uint32_t w, uint32_t h, RsNativeWindow sur) {
if (mWidth && mHeight) {
mStateVertex.updateSize(this);
mFBOCache.updateSize();
}
}

View File

@@ -38,6 +38,7 @@ public:
void resetAll(Context *);
void setup(Context *);
void updateSize() { mDirty = true; }
struct Hal {
mutable void *drv;