misc:Fix compiler warning at default Opt level
authorTony Barbour <tony@LunarG.com>
Thu, 5 Feb 2015 18:09:34 +0000 (11:09 -0700)
committerTony Barbour <tony@LunarG.com>
Thu, 5 Feb 2015 20:56:46 +0000 (13:56 -0700)
icd/intel/desc.c

index 8a844f1..81b1b85 100644 (file)
@@ -289,7 +289,7 @@ void intel_desc_pool_copy(struct intel_desc_pool *pool,
 
     surfaces = (const struct intel_desc_surface *)
         ((const char *) pool->surfaces + src->surface);
-    samplers = (const struct intel_desc_surface *)
+    samplers = (const struct intel_desc_sampler *)
         ((const char *) pool->samplers + src->sampler);
 
     intel_desc_pool_update(pool, begin, end, surfaces, samplers);