fix for releasing non-owned shader