Sfoglia il codice sorgente

JmeSurfaceView.java: documentation enhances

Pavly Gerges (pavl_g) 7 mesi fa
parent
commit
86b6d59158

+ 1 - 2
jme3-android/src/main/java/com/jme3/view/surfaceview/JmeSurfaceView.java

@@ -415,14 +415,13 @@ public class JmeSurfaceView extends RelativeLayout implements SystemListener, Di
 
     @Override
     public void destroy() {
-        /*skip the destroy block if the invoking instance is null*/
         if (glSurfaceView != null) {
             removeGLSurfaceView();
         }
         if (legacyApplication != null) {
             legacyApplication.destroy();
         }
-        /*help the Dalvik Garbage collector to destruct the pointers, by making them nullptr*/
+        /*help the Dalvik Garbage collector to destruct the objects, by releasing their references*/
         /*context instances*/
         legacyApplication = null;
         appSettings = null;