Skip to content

Commit

Permalink
By default use PrimitiveAllocator on Android (#2029) (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Ali-RS <[email protected]>
  • Loading branch information
bob0bob and Ali-RS authored Jun 8, 2023
1 parent 2251e2e commit 75f6d66
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
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;
Expand All @@ -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());
}
}

Expand Down

0 comments on commit 75f6d66

Please sign in to comment.