瀏覽代碼

By default use PrimitiveAllocator on Android (#2029)

Ali-RS 2 年之前
父節點
當前提交
227f26f013
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java

+ 3 - 2
jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java

@@ -58,7 +58,8 @@ import com.jme3.renderer.android.AndroidGL;
 import com.jme3.renderer.opengl.*;
 import com.jme3.renderer.opengl.*;
 import com.jme3.system.*;
 import com.jme3.system.*;
 import com.jme3.util.BufferAllocatorFactory;
 import com.jme3.util.BufferAllocatorFactory;
-import com.jme3.util.AndroidNativeBufferAllocator;
+import com.jme3.util.PrimitiveAllocator;
+
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.logging.Level;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 import java.util.logging.Logger;
@@ -85,7 +86,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
         final String implementation = BufferAllocatorFactory.PROPERTY_BUFFER_ALLOCATOR_IMPLEMENTATION;
         final String implementation = BufferAllocatorFactory.PROPERTY_BUFFER_ALLOCATOR_IMPLEMENTATION;
 
 
         if (System.getProperty(implementation) == null) {
         if (System.getProperty(implementation) == null) {
-            System.setProperty(implementation, AndroidNativeBufferAllocator.class.getName());
+            System.setProperty(implementation, PrimitiveAllocator.class.getName());
         }
         }
     }
     }