Skip to content

Commit

Permalink
Hardware acceleration check only on Honeycomb (API 11) or higher
Browse files Browse the repository at this point in the history
Hardware acceleration check only on Honeycomb (API 11) or higher
  • Loading branch information
Keripo committed Mar 19, 2014
1 parent 1de4af6 commit 1e71bf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/beatsportable/beats/GUIGame.java
Expand Up @@ -201,7 +201,8 @@ public void onCreate(Bundle savedInstanceState) {
// Test for hardware acceleration
View testView = new View(this);
setContentView(testView);
if (testView.isHardwareAccelerated()) {
// Hardware acceleration support was added in Honeycomb (11)
if (Build.VERSION.SDK_INT >= 11 && testView.isHardwareAccelerated()) {
hardwareAccelerate = 1;
} else {
hardwareAccelerate = 0;
Expand Down

0 comments on commit 1e71bf1

Please sign in to comment.