From 5993c53a6d36f4dc12910281be83021e45f76ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Fri, 17 Jul 2020 20:04:37 +0200 Subject: Cleanup: GPU: Encapsulate Backface culling --- source/blender/editors/gizmo_library/gizmo_draw_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/gizmo_library') diff --git a/source/blender/editors/gizmo_library/gizmo_draw_utils.c b/source/blender/editors/gizmo_library/gizmo_draw_utils.c index 01e5a7eacfd..71a364c60d7 100644 --- a/source/blender/editors/gizmo_library/gizmo_draw_utils.c +++ b/source/blender/editors/gizmo_library/gizmo_draw_utils.c @@ -84,7 +84,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 +92,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); -- cgit v1.2.3