diff options
Diffstat (limited to 'src/demos/j2d/CustomText.java')
-rwxr-xr-x | src/demos/j2d/CustomText.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demos/j2d/CustomText.java b/src/demos/j2d/CustomText.java index ccb940b..1b47d84 100755 --- a/src/demos/j2d/CustomText.java +++ b/src/demos/j2d/CustomText.java @@ -43,6 +43,7 @@ import com.sun.opengl.util.awt.gl2.GL2TextRenderer; import com.sun.opengl.util.texture.Texture; import com.sun.opengl.util.texture.TextureCoords; import com.sun.opengl.util.texture.TextureIO; +import com.sun.opengl.util.texture.awt.AWTTextureIO; import demos.common.Demo; import demos.util.FPSCounter; import demos.util.SystemTime; @@ -197,7 +198,7 @@ public class CustomText extends Demo { g.fillRect(0, 0, 1, 1); g.fillRect(1, 1, 1, 1); g.dispose(); - backgroundTexture = TextureIO.newTexture(bgImage, false); + backgroundTexture = AWTTextureIO.newTexture(bgImage, false); backgroundTexture.bind(); backgroundTexture.setTexParameteri(GL.GL_TEXTURE_MIN_FILTER, GL.GL_NEAREST); backgroundTexture.setTexParameteri(GL.GL_TEXTURE_MAG_FILTER, GL.GL_NEAREST); |