OSDN Git Service

[fixed] Clear screen for SpriteCacheOffsetTest.
authornathan.sweet <nathan.sweet@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 24 Nov 2010 06:54:54 +0000 (06:54 +0000)
committernathan.sweet <nathan.sweet@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 24 Nov 2010 06:54:54 +0000 (06:54 +0000)
tests/gdx-tests/src/com/badlogic/gdx/tests/SpriteCacheOffsetTest.java

index f31e705..1f7cee4 100644 (file)
@@ -15,6 +15,7 @@ package com.badlogic.gdx.tests;
 \r
 import com.badlogic.gdx.Gdx;\r
 import com.badlogic.gdx.InputProcessor;\r
+import com.badlogic.gdx.graphics.GL10;\r
 import com.badlogic.gdx.graphics.Sprite;\r
 import com.badlogic.gdx.graphics.SpriteCache;\r
 import com.badlogic.gdx.tests.utils.GdxTest;\r
@@ -46,6 +47,7 @@ public class SpriteCacheOffsetTest extends GdxTest implements InputProcessor {
        }\r
 \r
        public void render () {\r
+               Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\r
                cache.begin();\r
                for (int y = 1; y < tileMapHeight - 1; y++)\r
                        cache.draw(y, 1, tileMapWidth - 2);\r