Commit 45dbff2ee4a4e79124f4bde277bbee3d5a517b47

Gabriel Jacobo 2013-11-22T10:26:28

[Android] Fixes #2247, enable hardware acceleration by default. Setting android:hardwareAccelerated="true" seems to fix some random behaviors in certain devices like the XperiaE. Ref: http://developer.android.com/guide/topics/graphics/hardware-accel.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/android-project/AndroidManifest.xml b/android-project/AndroidManifest.xml
index a05b566..dc8450a 100644
--- a/android-project/AndroidManifest.xml
+++ b/android-project/AndroidManifest.xml
@@ -20,7 +20,8 @@
     <application android:label="@string/app_name"
                  android:icon="@drawable/ic_launcher"
                  android:allowBackup="true"
-                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
+                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
+                 android:hardwareAccelerated="true" >
         <activity android:name="SDLActivity"
                   android:label="@string/app_name"
                   android:configChanges="keyboardHidden|orientation"