diff --git a/android/build.gradle b/android/build.gradle index b53f6a4..da2bda3 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -14,7 +14,7 @@ android { } } - compileSdkVersion 30 + compileSdkVersion 29 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -37,7 +37,7 @@ android { defaultConfig { applicationId "org.merlin.tertis" minSdkVersion 26 - targetSdkVersion 30 + targetSdkVersion 29 versionCode 1 versionName "1.0" } diff --git a/build.gradle b/build.gradle index cace21d..6b99c33 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ buildscript { allprojects { apply plugin: "eclipse" - version = '1.3' + version = '1.4' ext { appName = "run" gdxVersion = '1.11.0' diff --git a/core/src/org/merlin/tertis/Tertis.scala b/core/src/org/merlin/tertis/Tertis.scala index 9416ac4..f1579e2 100644 --- a/core/src/org/merlin/tertis/Tertis.scala +++ b/core/src/org/merlin/tertis/Tertis.scala @@ -4,6 +4,7 @@ import com.badlogic.gdx.Application.ApplicationType import com.badlogic.gdx.audio.Sound import com.badlogic.gdx.graphics.Pixmap.Format import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch +import com.badlogic.gdx.graphics.glutils.PixmapTextureData import com.badlogic.gdx.graphics.{Pixmap, Texture} import com.badlogic.gdx.utils.ScreenUtils import com.badlogic.gdx.{ApplicationAdapter, Gdx, Input} @@ -130,6 +131,7 @@ object Tertis { val pixel = new Pixmap(1, 1, Format.RGBA8888) pixel.setColor(r, g, b, a) pixel.fill() - garbage.add(new Texture(pixel)) + val td = new PixmapTextureData(pixel, null, false, true) + garbage.add(new Texture(td)) } }