This commit is contained in:
Henrik Rydgard committed 2012-04-14 07:39:22 +02:00
1 parent a9087ea47c
commit dccb7bafdd
5 files changed
+15 -6

No files matched your search

+2 -2
View File
@@ -122,12 +122,12 @@ extern "C" void Java_com_turboviking_libnative_NativeApp_init
extern "C" void Java_com_turboviking_libnative_NativeApp_shutdown
(JNIEnv *, jclass) {
ILOG("RollerBallMainShutdown - calling NativeShutdown.");
ILOG("NativeShutdown.");
if (renderer_inited) {
NativeShutdownGraphics();
}
NativeShutdown();
ILOG("RollerBallMainShutdown - calling VFSShutdown.");
ILOG("VFSShutdown.");
VFSShutdown();
}
@@ -275,7 +275,6 @@ public class NativeActivity extends Activity {
// Adjust these as necessary
private static String TAG = "NativeActivity";
String packageName = "com.turboviking.rollerball";
// Graphics and audio interfaces
private GLSurfaceView mGLSurfaceView;
@@ -300,6 +299,7 @@ public class NativeActivity extends Activity {
// Get system information
ApplicationInfo appInfo = null;
PackageManager packMgmr = getPackageManager();
String packageName = getPackageName();
try {
appInfo = packMgmr.getApplicationInfo(packageName, 0);
} catch (NameNotFoundException e) {
@@ -344,7 +344,7 @@ public class NativeActivity extends Activity {
ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
ConfigurationInfo info = am.getDeviceConfigurationInfo();
return info.reqGlEsVersion >= 0x20000;
}
}
@Override