Fix the crash of Texture2dTest when `—ndk-mode` is `release`