From 02c09773ea07c8c0a3d7be63abdfd963a9452402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 16 Jul 2020 20:24:05 +0200 Subject: Cleanup: GPU: rename bglPolygonOffset to GPU_polygon_offset And move it to GPU module. --- source/blender/editors/gpencil/drawgpencil.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/gpencil/drawgpencil.c') diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 4df071c84f8..9d11c1c2a25 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -60,9 +60,8 @@ #include "WM_api.h" -#include "BIF_glutil.h" - #include "GPU_immediate.h" +#include "GPU_matrix.h" #include "GPU_state.h" #include "ED_gpencil.h" @@ -353,7 +352,7 @@ static void gpencil_draw_strokes(tGPDdraw *tgpw) /* first arg is normally rv3d->dist, but this isn't * available here and seems to work quite well without */ - bglPolygonOffset(1.0f, 1.0f); + GPU_polygon_offset(1.0f, 1.0f); } /* 3D Stroke */ @@ -396,7 +395,7 @@ static void gpencil_draw_strokes(tGPDdraw *tgpw) if (no_xray) { GPU_depth_test(false); - bglPolygonOffset(0.0, 0.0); + GPU_polygon_offset(0.0f, 0.0f); } } /* if only one stroke, exit from loop */ -- cgit v1.2.3