فهرست منبع

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.system.*;
 import com.jme3.util.BufferAllocatorFactory;
-import com.jme3.util.AndroidNativeBufferAllocator;
+import com.jme3.util.PrimitiveAllocator;
+
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.logging.Level;
 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;
 
         if (System.getProperty(implementation) == null) {
-            System.setProperty(implementation, AndroidNativeBufferAllocator.class.getName());
+            System.setProperty(implementation, PrimitiveAllocator.class.getName());
         }
     }