Remove use of deprecated image formats (IOS)

experimental
shadowislord 10 years ago
parent 1dfa4d4c0d
commit eaa5a15f39
  1. 11
      jme3-ios/src/main/java/com/jme3/renderer/ios/TextureUtil.java

@ -281,12 +281,6 @@ public class TextureUtil {
public static IosGLImageFormat getImageFormat(Format fmt) throws UnsupportedOperationException {
IosGLImageFormat imageFormat = new IosGLImageFormat();
switch (fmt) {
case RGBA16:
case RGB16:
case RGB10:
case Luminance16:
case Luminance16Alpha16:
case Alpha16:
case Depth32:
case Depth32F:
throw new UnsupportedOperationException("The image format '"
@ -325,11 +319,6 @@ public class TextureUtil {
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_5_6_5;
imageFormat.renderBufferStorageFormat = JmeIosGLES.GL_RGB565;
break;
case ARGB4444:
imageFormat.format = JmeIosGLES.GL_RGBA4;
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_4_4_4_4;
imageFormat.renderBufferStorageFormat = JmeIosGLES.GL_RGBA4;
break;
case RGB5A1:
imageFormat.format = JmeIosGLES.GL_RGBA;
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_5_5_5_1;

Loading…
Cancel
Save