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>2017-06-23 09:47:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-06-23 09:47:49 +0300
commitd47cb2a4e491b229db0e8a07344d021cb051ccd4 (patch)
treef3c4a6f196712d34ca100519e81b751117f1a7ec /source/blender/editors/manipulator_library/manipulator_draw_utils.c
parent16b807e84f5d1a1f42db7bbb68cfcc0b160e995c (diff)
Manipulator: disable GL state changes drawing geometry
If there is case this is needed, we can enable and restore state for now it seems OK to disable.
Diffstat (limited to 'source/blender/editors/manipulator_library/manipulator_draw_utils.c')
-rw-r--r--source/blender/editors/manipulator_library/manipulator_draw_utils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/manipulator_library/manipulator_draw_utils.c b/source/blender/editors/manipulator_library/manipulator_draw_utils.c
index 4bd7f74e6e5..26f9ebbe54e 100644
--- a/source/blender/editors/manipulator_library/manipulator_draw_utils.c
+++ b/source/blender/editors/manipulator_library/manipulator_draw_utils.c
@@ -100,13 +100,19 @@ void wm_manipulator_geometryinfo_draw(const ManipulatorGeomInfo *info, const boo
GWN_batch_uniform_4fv(batch, "color", color);
+ /* We may want to re-visit this, for now disable
+ * since it causes issues leaving the GL state modified. */
+#if 0
glEnable(GL_CULL_FACE);
- // glEnable(GL_DEPTH_TEST);
+ glEnable(GL_DEPTH_TEST);
+#endif
GWN_batch_draw(batch);
+#if 0
glDisable(GL_DEPTH_TEST);
- // glDisable(GL_CULL_FACE);
+ glDisable(GL_CULL_FACE);
+#endif
GWN_batch_discard_all(batch);