From 2a8dd3c5ff5bd58411ee6a00d8a9087ce98941e0 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Tue, 28 Feb 2017 15:27:50 -0500 Subject: remove GPU_basic_shader calls from wm_gesture Gestures are drawn with specific built-in shaders now. --- source/blender/windowmanager/intern/wm_gesture.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_gesture.c') diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index e95d5cbc2ed..b7a34b329b7 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -45,7 +45,6 @@ #include "BKE_context.h" - #include "WM_api.h" #include "WM_types.h" @@ -53,9 +52,7 @@ #include "wm_subwindow.h" #include "wm_draw.h" -#include "GPU_basic_shader.h" #include "GPU_immediate.h" -#include "GPU_shader.h" #include "BIF_glutil.h" @@ -381,11 +378,9 @@ static void draw_filled_lasso(wmWindow *win, wmGesture *gt) immDrawPixelsTex(rect.xmin, rect.ymin, w, h, GL_RED, GL_UNSIGNED_BYTE, GL_NEAREST, pixel_buf, 1.0f, 1.0f, NULL); GPU_shader_unbind(); - GPU_basic_shader_bind(GPU_SHADER_USE_COLOR); glPixelStorei(GL_UNPACK_ALIGNMENT, 4); - MEM_freeN(pixel_buf); glDisable(GL_BLEND); @@ -496,8 +491,8 @@ static void wm_gesture_draw_cross(wmWindow *win, wmGesture *gt) void wm_gesture_draw(wmWindow *win) { wmGesture *gt = (wmGesture *)win->gesture.first; - - GPU_basic_shader_line_width(1); + + glLineWidth(1.0f); for (; gt; gt = gt->next) { /* all in subwindow space */ wmSubWindowSet(win, gt->swinid); -- cgit v1.2.3