diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-28 18:14:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-28 18:19:42 +0300 |
commit | 2100dba34bbec7fffdff787c01d3270ab7d3dfbb (patch) | |
tree | 6537a82b5ffe39e64da79faf8a0b875804567409 /source/blender/editors/interface/interface_icons.c | |
parent | fbe7c848c20c1f3fef0b2ee47b9d2d2fa19a5b5e (diff) |
Cleanup: GPU: Move program point size to GPU_state
Diffstat (limited to 'source/blender/editors/interface/interface_icons.c')
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index fa3605269ff..6f1f4dde1ab 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -317,7 +317,7 @@ static void vicon_keytype_draw_wrapper( uint flags_id = GPU_vertformat_attr_add(format, "flags", GPU_COMP_U32, 1, GPU_FETCH_INT); immBindBuiltinProgram(GPU_SHADER_KEYFRAME_DIAMOND); - GPU_enable_program_point_size(); + GPU_program_point_size(true); immUniform2f("ViewportSize", -1.0f, -1.0f); immBegin(GPU_PRIM_POINTS, 1); @@ -343,7 +343,7 @@ static void vicon_keytype_draw_wrapper( KEYFRAME_EXTREME_NONE); immEnd(); - GPU_disable_program_point_size(); + GPU_program_point_size(false); immUnbindProgram(); UI_Theme_Restore(&theme_state); |