A check is done based on MAX_TEXTURE_LEVELS which is 12, but the then used array has only SIS_MAX_TEXTURE_LEVELS 11. Please apply attached patch.
Created attachment 10953 [details] [review]
MAX_TEXTURE_LEVELS => SIS_MAX_TEXTURE_LEVELS
fixed in git.