Refactor the validation logic for the TexParameter* series of API entry points to use the same shared method. TRAC #23454 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Authored-by: Jamie Madill