diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_gesture.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index 52c934424e4..e7cb1c00605 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -357,11 +357,6 @@ static void draw_filled_lasso(wmGesture *gt) GPU_blend(true); GPU_blend_set_func(GPU_ONE, GPU_ONE); - GLint unpack_alignment; - glGetIntegerv(GL_UNPACK_ALIGNMENT, &unpack_alignment); - - glPixelStorei(GL_UNPACK_ALIGNMENT, 1); - IMMDrawPixelsTexState state = immDrawPixelsTexSetup(GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR); GPU_shader_bind(state.shader); GPU_shader_uniform_vector( @@ -382,8 +377,6 @@ static void draw_filled_lasso(wmGesture *gt) GPU_shader_unbind(); - glPixelStorei(GL_UNPACK_ALIGNMENT, unpack_alignment); - MEM_freeN(pixel_buf); GPU_blend(false); |