Add error to catch mismatched allocations and samplers.

Change-Id: Id54d669fa9c3ce833fd094d5615e05ad4742e0ac
1 file changed