mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -04:00
setupBridgeEGL
This commit is contained in:
parent
332f8c300d
commit
b25e8ebf34
@ -3,6 +3,7 @@ package net.kdt.pojavlaunch;
|
||||
import android.system.*;
|
||||
import java.io.*;
|
||||
|
||||
// This clads should be named as 'LoadMe' as original
|
||||
public class BinaryExecutor
|
||||
{
|
||||
private BinaryExecutor() {}
|
||||
|
@ -689,6 +689,11 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||
// Does it required anymore?
|
||||
// AndroidDisplay.windowWidth += navBarHeight;
|
||||
|
||||
if (LAUNCH_TYPE != LTYPE_PROCESS) {
|
||||
BinaryExecutor.setupBridgeEGL();
|
||||
egl10.eglMakeCurrent(theEgl.eglGetCurrentDisplay(), EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
|
||||
}
|
||||
|
||||
new Thread(new Runnable(){
|
||||
|
||||
@Override
|
||||
@ -1095,7 +1100,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||
if (exitCode != 0) {
|
||||
Tools.showError(this, new ErrnoException("java", exitCode), false);
|
||||
}
|
||||
} else { // Type Invocation or BinaryExec
|
||||
} else { // Type Invocation
|
||||
final FileDescriptor logFile = BinaryExecutor.redirectStdio();
|
||||
|
||||
new Thread(new Runnable() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user