Support for initializing video/audio in static constructors before main()

This commit is contained in:
pelya
2010-06-07 17:20:50 +03:00
parent 3712818ec4
commit 9f97bccd10
2 changed files with 5 additions and 4 deletions

View File

@@ -40,6 +40,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer {
public void onDrawFrame(GL10 gl) {
nativeInitJavaCallbacks();
System.loadLibrary("application");
System.loadLibrary("sdl_main");
nativeInit(); // Calls main() and never returns, hehe - we'll call eglSwapBuffers() from native code