jni engine prep for external texture