Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions templates/android/java/org/haxe/nme/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ public MainView(Context context,GameActivity inActivity, boolean inTranslucent)
public EGLConfig chooseConfig (EGL10 egl, EGLDisplay display)
{
Log.v("EGL","Choose config (2) " + translucent);

int alpha = translucent ? 8 : 0;
int depth = ::if WIN_DEPTH_BUFFER:: 16 ::else:: 0 ::end::;
int stencil = ::if WIN_STENCIL_BUFFER:: 8 ::else:: 0 ::end::;

EGLConfig[] configs = new EGLConfig[1];
int[] num_config = new int[1];

setPreserveEGLContextOnPause(true);

// Try as specified - aa
if (::WIN_ANTIALIASING:: >= 1)
Expand Down