making a plugin compatable with -nullrhi

tried deleting this post but dont have permission or something but in the off chance someone else runs into this issue this was the correct approach