diff --git a/source/blender/editors/interface/view2d.cc b/source/blender/editors/interface/view2d.cc index 4e161c1d1be..aa2d572a1fc 100644 --- a/source/blender/editors/interface/view2d.cc +++ b/source/blender/editors/interface/view2d.cc @@ -1304,6 +1304,7 @@ void UI_view2d_dot_grid_draw(const View2D *v2d, GPUVertFormat *format = immVertexFormat(); const uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); + GPU_program_point_size(true); immBindBuiltinProgram(GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA); /* Scaling the dots fully with the zoom looks too busy, but a bit of size variation is nice. */ @@ -1385,6 +1386,7 @@ void UI_view2d_dot_grid_draw(const View2D *v2d, } immUnbindProgram(); + GPU_program_point_size(false); } /** \} */