Merge branch 'blender-v2.82-release'
[blender.git] / source / blender / draw / engines / workbench / workbench_forward.c
index 4366c87678fdc9b1dedb14c3eabbb6c45741e011..97bea58f31b7d03e77fbabde1b174bf66c41ed61 100644 (file)
@@ -757,7 +757,7 @@ void workbench_forward_cache_populate(WORKBENCH_Data *vedata, Object *ob)
         memset(gpumat_array, 0, sizeof(*gpumat_array) * materials_len);
 
         struct GPUBatch **mat_geom = DRW_cache_object_surface_material_get(
-            ob, gpumat_array, materials_len, NULL, NULL, NULL);
+            ob, gpumat_array, materials_len);
         if (mat_geom) {
           for (int i = 0; i < materials_len; i++) {
             if (mat_geom[i] == NULL) {