case CubeMap:
GL11.glTexSubImage2D(LwjglTextureStateUtil.getGLCubeMapFace(dstFace), 0, dstOffsetX, dstOffsetY,
dstWidth, dstHeight, pixelFormat, GL11.GL_UNSIGNED_BYTE, source);
break;
default:
throw new Ardor3dException("Unsupported type for updateTextureSubImage: " + destination.getType());
}
} finally {
// Restore the texture configuration (when necessary)...
// Restore alignment.
if (origAlignment != alignment) {