Fixes access to TextureUtil.uploadTextureSub

Since TextureUtil.uploadTextureMipmap is private, I used the next available function which does the same thing with a needless for loop in our case. It, however, is public static
:)
This commit is contained in:
Soaryn committed 2014-04-08 03:18:16 -04:00
1 parent 4699a9e86e
commit 91c65cf1dc
1 file changed
+2 -1
+2 -1
View File
@@ -65,7 +65,8 @@ public class TextureSpecial extends TextureAtlasSprite implements IIconSelfRegis
if (textureFX != null) {
textureFX.update();
if (textureFX.changed())
TextureUtil.uploadTextureSub(0, textureFX.imageData, width, height, originX, originY, false, false, false);
//TextureUtil.uploadTextureSub(0, textureFX.imageData, width, height, originX, originY, false, false, false); not accessible
TextureUtil.uploadTextureMipmap(new int[][]{textureFX.imageData}, width, height, originX, originY, false, false);
}
}