mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
Remove explicit surface unlinking
This commit is contained in:
parent
f2adae6bcf
commit
9c2e1244d8
1 changed files with 2 additions and 5 deletions
|
|
@ -155,9 +155,7 @@ public class MinecraftGLSurface extends View {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void surfaceDestroyed(@NonNull SurfaceHolder holder) {
|
public void surfaceDestroyed(@NonNull SurfaceHolder holder) {}
|
||||||
JREUtils.releaseBridgeWindow();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
((ViewGroup)getParent()).addView(surfaceView);
|
((ViewGroup)getParent()).addView(surfaceView);
|
||||||
|
|
@ -183,7 +181,6 @@ public class MinecraftGLSurface extends View {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onSurfaceTextureDestroyed(@NonNull SurfaceTexture surface) {
|
public boolean onSurfaceTextureDestroyed(@NonNull SurfaceTexture surface) {
|
||||||
JREUtils.releaseBridgeWindow();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -521,7 +518,7 @@ public class MinecraftGLSurface extends View {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println(event);
|
//System.out.println(event);
|
||||||
|
|
||||||
if(Gamepad.isGamepadEvent(event)){
|
if(Gamepad.isGamepadEvent(event)){
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue