case ThreeDimensional:
gl.getGL2ES2().glTexSubImage3D(GL2ES2.GL_TEXTURE_3D, 0, dstOffsetX, dstOffsetY, dstOffsetZ,
dstWidth, dstHeight, dstDepth, pixelFormat, GL.GL_UNSIGNED_BYTE, source);
break;
case CubeMap:
gl.glTexSubImage2D(JoglTextureStateUtil.getGLCubeMapFace(dstFace), 0, dstOffsetX, dstOffsetY,
dstWidth, dstHeight, pixelFormat, GL.GL_UNSIGNED_BYTE, source);
break;
default:
throw new Ardor3dException("Unsupported type for updateTextureSubImage: " + destination.getType());
}