GPU: Rename GPU_shader_get_uniform to GPU_shader_get_uniform_ensure
[blender.git] / source / blender / windowmanager / intern / wm_gesture.c
index 77734a361c1d3d3e9f28a81829390fde140231d7..57b2d380928f61f7905a4f00fb603e16deb530ff 100644 (file)
@@ -314,7 +314,7 @@ static void draw_filled_lasso(wmGesture *gt)
 
                IMMDrawPixelsTexState state = immDrawPixelsTexSetup(GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR);
                GPU_shader_bind(state.shader);
-               GPU_shader_uniform_vector(state.shader, GPU_shader_get_uniform(state.shader, "shuffle"), 4, 1, red);
+               GPU_shader_uniform_vector(state.shader, GPU_shader_get_uniform_ensure(state.shader, "shuffle"), 4, 1, red);
 
                immDrawPixelsTex(&state, rect.xmin, rect.ymin, w, h, GL_RED, GL_UNSIGNED_BYTE, GL_NEAREST, pixel_buf, 1.0f, 1.0f, NULL);