Fix #143685: Use correct shader for points for vertex slide

Previously it was using `GPU_SHADER_3D_UNIFORM_COLOR`, should be
`GPU_SHADER_3D_POINT_UNIFORM_COLOR` for points so we don't get asserts.

Pull Request: https://projects.blender.org/blender/blender/pulls/143683
This commit is contained in:
YimingWu
2025-08-04 14:02:11 +02:00
committed by YimingWu
parent cf32baff18
commit 02977873fb

View File

@@ -334,7 +334,12 @@ static void drawVertSlide(TransInfo *t)
}
immEnd();
immUnbindProgram();
immBindBuiltinProgram(GPU_SHADER_3D_POINT_UNIFORM_COLOR);
GPU_point_size(ctrl_size);
immUniformThemeColorShadeAlpha(TH_VERTEX_ACTIVE, 80, alpha_shade);
immBegin(GPU_PRIM_POINTS, 1);
immVertex3fv(shdr_pos, (slp->flipped && slp->use_even) ? co_dest_3d_act : co_orig_3d_act);