Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-17 15:43:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 15:43:31 +0300
commit547e962bf6c12cebf2cd4106ba50f47f9bdf66f9 (patch)
tree8ebd3059336bcd0765457b6f6c350e0a040cf704 /source/blender/draw/intern/draw_view.c
parent446a646551014f31b3dc769ae85689ea9a4b3bce (diff)
3D View: 3D Cursor was not restoring GL state
Caused camera frame to be double width.
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r--source/blender/draw/intern/draw_view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 4bf2e65ce6f..8d0b07e189e 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -732,6 +732,9 @@ void DRW_draw_cursor(void)
GWN_batch_program_set(cursor_batch, GPU_shader_get_program(shader), GPU_shader_get_interface(shader));
GWN_batch_draw(cursor_batch);
+
+ glDisable(GL_BLEND);
+ glDisable(GL_LINE_SMOOTH);
}
}
}