Disable EGL initialization, called from native now
This commit is contained in:
parent
19c8340b5c
commit
7bcaa0db87
1 changed files with 8 additions and 2 deletions
|
@ -160,6 +160,10 @@ public class XashActivity extends Activity {
|
|||
mSurface.SwapBuffers();
|
||||
}
|
||||
|
||||
public static Surface getNativeSurface() {
|
||||
return XashActivity.mSurface.getNativeSurface();
|
||||
}
|
||||
|
||||
public static void vibrate( int time ) {
|
||||
((Vibrator) mSingleton.getSystemService(Context.VIBRATOR_SERVICE)).vibrate( time );
|
||||
}
|
||||
|
@ -281,12 +285,10 @@ public class XashActivity extends Activity {
|
|||
class XashMain implements Runnable {
|
||||
public void run()
|
||||
{
|
||||
XashActivity.createGLContext();
|
||||
XashActivity.nativeInit(XashActivity.mArgv);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
SDLSurface. This is what we draw on, so we need to know when it's created
|
||||
in order to do anything useful.
|
||||
|
@ -360,6 +362,10 @@ View.OnKeyListener {
|
|||
// unused
|
||||
public void onDraw(Canvas canvas) {}
|
||||
|
||||
// first, initialize native backend
|
||||
public Surface getNativeSurface() {
|
||||
return getHolder().getSurface();
|
||||
}
|
||||
|
||||
// EGL functions
|
||||
public boolean InitGL() {
|
||||
|
|
Loading…
Add table
Reference in a new issue