Skip to content

Commit 5d44cb0

Browse files
dzaimatonsky
authored andcommitted
Don't reset DirectContext on LayerGLSkija resize
1 parent 8eab895 commit 5d44cb0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

shared/java/skija/LayerGLSkija.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ public void resize(int width, int height) {
6565
_renderTarget.close();
6666
_renderTarget = null;
6767
}
68-
6968
if (_directContext != null) {
70-
// https://bugs.chromium.org/p/skia/issues/detail?id=12814
71-
// _directContext.abandon();
72-
_directContext.close();
73-
_directContext = null;
69+
_directContext.resetGLAll();
7470
}
75-
71+
7672
super.resize(width, height);
7773
}
7874

0 commit comments

Comments
 (0)