diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index 2c00f1070a3..8bc1396e86e 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -220,7 +220,7 @@ static void imapaint_tri_weights(Object *ob, /* compute barycentric coordinates */ /* get the needed opengl matrices */ - glGetIntegerv(GL_VIEWPORT, view); + gpuGetSizeBox(GL_VIEWPORT, view); gpuGetMatrix(GL_MODELVIEW_MATRIX, (float *)model); gpuGetMatrix(GL_PROJECTION_MATRIX, (float *)proj); view[0] = view[1] = 0; |