UI: Fix Wideline AA for timeline

This commit is contained in:
Clément Foucault 2020-05-20 17:03:06 +02:00
parent 8fe448b44d
commit e15ffc0c54
1 changed files with 2 additions and 2 deletions

View File

@ -203,9 +203,9 @@ static void draw_parallel_lines(const ParallelLinesSet *lines,
immBindBuiltinProgram(GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR);
immUniform2fv("viewportSize", &viewport[2]);
/* 0.5f factor here is because the line is too fat due to the builtin antialiasing.
/* -1.0f offset here is because the line is too fat due to the builtin antialiasing.
* TODO make a variant or a uniform to toggle it off. */
immUniform1f("lineWidth", 0.5f * U.pixelsize);
immUniform1f("lineWidth", U.pixelsize - 1.0f);
}
else {
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);