UI: Fix curve widget fill artifacts
Disable antialiasing which caused artifacts. Differential Revision: https://developer.blender.org/D8497
This commit is contained in:
@@ -2084,7 +2084,6 @@ void ui_draw_but_CURVE(ARegion *region, uiBut *but, const uiWidgetColors *wcol,
|
||||
|
||||
/* Curve filled. */
|
||||
immUniformColor3ubvAlpha(wcol->item, 128);
|
||||
GPU_polygon_smooth(true);
|
||||
immBegin(GPU_PRIM_TRI_STRIP, (CM_TABLE * 2 + 2) + 4);
|
||||
immVertex2f(pos, line_range.xmin, rect->ymin);
|
||||
immVertex2f(pos, line_range.xmin, line_range.ymin);
|
||||
@@ -2097,7 +2096,6 @@ void ui_draw_but_CURVE(ARegion *region, uiBut *but, const uiWidgetColors *wcol,
|
||||
immVertex2f(pos, line_range.xmax, rect->ymin);
|
||||
immVertex2f(pos, line_range.xmax, line_range.ymax);
|
||||
immEnd();
|
||||
GPU_polygon_smooth(false);
|
||||
|
||||
/* Curve line. */
|
||||
GPU_line_width(1.0f);
|
||||
|
||||
Reference in New Issue
Block a user