Android: remove SURFACE_TYPE_GPU, deprecated in API level 5.
authorSylvain Becker <sylvain.becker@gmail.com>
Sat, 05 Jan 2019 22:49:50 +0100
changeset 125076a5107360fbc
parent 12506 31512aa74164
child 12508 662cdc7f1dea
Android: remove SURFACE_TYPE_GPU, deprecated in API level 5.

https://developer.android.com/reference/android/view/SurfaceHolder

This constant was deprecated in API level 5. this is ignored, this value is set automatically when needed.
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Sat Jan 05 22:46:52 2019 +0100
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Sat Jan 05 22:49:50 2019 +0100
     1.3 @@ -1582,7 +1582,6 @@
     1.4      @Override
     1.5      public void surfaceCreated(SurfaceHolder holder) {
     1.6          Log.v("SDL", "surfaceCreated()");
     1.7 -        holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
     1.8      }
     1.9  
    1.10      // Called when we lose the surface