shadow2DArray Bug fix && oglwrap changes.