Merge branch 'blender-v2.90-release'
This commit is contained in:
commit
3785dc59d1
|
@ -363,7 +363,7 @@ static void gpencil_convert_spline(Main *bmain,
|
|||
BKE_nurb_makeCurve(nu, coord_array, NULL, NULL, NULL, resolu, sizeof(float[3]));
|
||||
|
||||
/* Allocate memory for storage points. */
|
||||
gps->totpoints = nurb_points - 1;
|
||||
gps->totpoints = nurb_points;
|
||||
gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");
|
||||
|
||||
/* Add points. */
|
||||
|
|
|
@ -2177,7 +2177,7 @@ void GPU_samplers_init(void)
|
|||
glGenSamplers(1, &GG.icon_sampler);
|
||||
glSamplerParameteri(GG.icon_sampler, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
|
||||
glSamplerParameteri(GG.icon_sampler, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glSamplerParameteri(GG.icon_sampler, GL_TEXTURE_LOD_BIAS, -0.5f);
|
||||
glSamplerParameterf(GG.icon_sampler, GL_TEXTURE_LOD_BIAS, -0.5f);
|
||||
}
|
||||
|
||||
void GPU_sampler_icon_bind(int unit)
|
||||
|
|
Loading…
Reference in New Issue