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:
authorClément Foucault <foucault.clem@gmail.com>2018-12-12 01:05:36 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-12-12 01:05:36 +0300
commit5049322e6252617ab9477338bf2f5d3e4d7845d6 (patch)
treec57286787ba3bdb1704d9902facb5c55e84ad15a /source/blender/editors/gpencil/gpencil_fill.c
parentb7933cc60195b5e96878aaab7045db6cf81b2dba (diff)
GPUState: Change isolated glLineWidth usage to GPU_line_width
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_fill.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 6105a6b2523..68f463dbce0 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -70,6 +70,7 @@
#include "GPU_draw.h"
#include "GPU_matrix.h"
#include "GPU_framebuffer.h"
+#include "GPU_state.h"
#include "UI_interface.h"
@@ -151,7 +152,7 @@ static void gp_draw_basic_stroke(
immBindBuiltinProgram(GPU_SHADER_3D_FLAT_COLOR);
/* draw stroke curve */
- glLineWidth(1.0f);
+ GPU_line_width(1.0f);
immBeginAtMost(GPU_PRIM_LINE_STRIP, totpoints + cyclic_add);
const bGPDspoint *pt = points;