Fixed texture handle not being deleted