You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vector<double> normal_sat_vec; //summed area table
1934
-
double *normal_sat = nullptr; //summed area table for normal map
1933
+
LocalVector<double> normal_sat_vec; //summed area table
1935
1934
int normal_w = 0, normal_h = 0;
1936
1935
1937
1936
ERR_FAIL_COND_V_MSG(p_normal_map.is_null() || p_normal_map->is_empty(), ERR_INVALID_PARAMETER, "Must provide a valid normal map for roughness mipmaps");
@@ -1945,8 +1944,7 @@ Error Image::generate_mipmap_roughness(RoughnessChannel p_roughness_channel, con
1945
1944
normal_h = nm->get_height();
1946
1945
1947
1946
normal_sat_vec.resize(normal_w * normal_h * 3);
1948
-
1949
-
normal_sat = normal_sat_vec.ptrw();
1947
+
double *normal_sat = normal_sat_vec.ptr();
1950
1948
1951
1949
//create summed area table
1952
1950
@@ -2021,24 +2019,26 @@ Error Image::generate_mipmap_roughness(RoughnessChannel p_roughness_channel, con
0 commit comments