am 4d7c4100
: Merge "Destroy eglSurface before recreating." into lmp-dev
* commit '4d7c41008d0945b58d802e04d0bea28e9b739a5f': Destroy eglSurface before recreating.
This commit is contained in:
commit
d435b56ab8
@ -401,6 +401,11 @@ status_t DisplayDevice::orientationToTransfrom(
|
||||
void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) {
|
||||
dirtyRegion.set(getBounds());
|
||||
|
||||
if (mSurface != EGL_NO_SURFACE) {
|
||||
eglDestroySurface(mDisplay, mSurface);
|
||||
mSurface = EGL_NO_SURFACE;
|
||||
}
|
||||
|
||||
mDisplaySurface->resizeBuffers(newWidth, newHeight);
|
||||
|
||||
ANativeWindow* const window = mNativeWindow.get();
|
||||
|
Loading…
Reference in New Issue
Block a user