Commit 70c27e8e by Corentin Wallez

Revert "Revert "WindowSurfaceCGL: unregister the SwapLayer on destruction""

This reverts commit 10277159. Change-Id: I9ecf977845c6ee01d7c3e3791c23673407cfb91a Reviewed-on: https://chromium-review.googlesource.com/322213Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent dd46e643
...@@ -177,6 +177,7 @@ WindowSurfaceCGL::~WindowSurfaceCGL() ...@@ -177,6 +177,7 @@ WindowSurfaceCGL::~WindowSurfaceCGL()
if (mSwapLayer != nil) if (mSwapLayer != nil)
{ {
[mSwapLayer removeFromSuperlayer];
[mSwapLayer release]; [mSwapLayer release];
mSwapLayer = nil; mSwapLayer = nil;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment