INNER CODE UNIT · Java
onDestroy
githubhaohao/NDK_OpenGLES_3_0 · app/src/main/java/com/byteflow/app/MainActivity.java:261
protected void onDestroy() {
super.onDestroy();
mGLRender.unInit();
/*
* Once the EGL context gets destroyed all the GL buffers etc will get destroyed with it,
* so this is unnecessary.
* */
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {