OSDN Git Service

shoudn't return an indirect buffer in FreeType
authorMario Zechner <contact@badlogicgames.com>
Mon, 17 Sep 2012 22:00:26 +0000 (00:00 +0200)
committerMario Zechner <contact@badlogicgames.com>
Mon, 17 Sep 2012 22:00:26 +0000 (00:00 +0200)
extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/FreeType.java
tests/gdx-tests-lwjgl/src/com/badlogic/gdx/tests/lwjgl/LwjglDebugStarter.java

index c7cc7cf..4269c87 100644 (file)
@@ -354,7 +354,7 @@ public class FreeType {
                                //              FreeType sets FT_Bitmap::buffer to NULL when the bitmap is empty (e.g. for ' ')\r
                                //              JNICheck is on by default on emulators and might have a point anyway...\r
                                //              So let's avoid this and just return a dummy non-null non-zero buffer\r
-                               return ByteBuffer.allocate(1);\r
+                               return BufferUtils.newByteBuffer(1);\r
                        return getBuffer(address);\r
                }\r
                \r
index 4b842a3..78d7758 100644 (file)
@@ -20,6 +20,8 @@ import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
 import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\r
 import com.badlogic.gdx.tests.ProjectiveTextureTest;\r
 import com.badlogic.gdx.tests.TextureDownloadTest;\r
+import com.badlogic.gdx.tests.extensions.FreeTypeTest;\r
+import com.badlogic.gdx.tests.extensions.InternationalFontsTest;\r
 import com.badlogic.gdx.tests.gwt.GwtTestWrapper;\r
 import com.badlogic.gdx.tests.utils.GdxTest;\r
 import com.badlogic.gdx.utils.SharedLibraryLoader;\r
@@ -32,7 +34,7 @@ public class LwjglDebugStarter {
                new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");\r
                new SharedLibraryLoader("../../extensions/gdx-freetype/libs/gdx-freetype-natives.jar").load("gdx-freetype");\r
 \r
-               GdxTest test = new GwtTestWrapper();\r
+               GdxTest test = new InternationalFontsTest();\r
                LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\r
                config.width = 640;\r
                config.height = 640;\r