anv/device: Update the right sampler in UpdateDescriptorSets
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 Nov 2015 22:48:28 +0000 (14:48 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 Nov 2015 22:48:28 +0000 (14:48 -0800)
src/vulkan/anv_device.c

index 406792af95e9980f9ce5afe4f09b6e64b893fa4c..913bcdc995931520ec0868be3857122bdaf484d1 100644 (file)
@@ -1759,7 +1759,7 @@ void anv_UpdateDescriptorSets(
              * to stomp on it.
              */
             if (sampler)
-               desc->sampler = sampler;
+               desc[j].sampler = sampler;
          }
          break;