Merge "Correctly call glviewport when surface changes."
This commit is contained in:
committed by
Android (Google) Code Review
commit
eac3503deb
@@ -442,6 +442,7 @@ void Context::setSurface(uint32_t w, uint32_t h, RsNativeWindow sur) {
|
||||
|
||||
if (mWidth && mHeight) {
|
||||
mStateVertex.updateSize(this);
|
||||
mFBOCache.updateSize();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ public:
|
||||
void resetAll(Context *);
|
||||
|
||||
void setup(Context *);
|
||||
void updateSize() { mDirty = true; }
|
||||
|
||||
struct Hal {
|
||||
mutable void *drv;
|
||||
|
||||
Reference in New Issue
Block a user