diff options
Diffstat (limited to 'source/blender/editors/gizmo_library/gizmo_draw_utils.c')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_draw_utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_draw_utils.c b/source/blender/editors/gizmo_library/gizmo_draw_utils.c index 01e5a7eacfd..033673a99a8 100644 --- a/source/blender/editors/gizmo_library/gizmo_draw_utils.c +++ b/source/blender/editors/gizmo_library/gizmo_draw_utils.c @@ -29,7 +29,6 @@ #include "ED_view3d.h" #include "GPU_batch.h" -#include "GPU_glew.h" #include "GPU_immediate.h" #include "MEM_guardedalloc.h" @@ -84,7 +83,7 @@ void wm_gizmo_geometryinfo_draw(const GizmoGeomInfo *info, /* 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); + GPU_face_culling(GPU_CULL_BACK); GPU_depth_test(true); #endif @@ -92,7 +91,7 @@ void wm_gizmo_geometryinfo_draw(const GizmoGeomInfo *info, #if 0 GPU_depth_test(false); - glDisable(GL_CULL_FACE); + GPU_face_culling(GPU_CULL_NONE); #endif GPU_batch_discard(batch); |