Skip to content

Commit e1f33d5

Browse files
authored
Merge pull request #4002 from t20100/fix-opengl-line-render
silx.gui.plot.PlotWidget: Fixed line rendering with OpenGL
2 parents da62d02 + c5488ca commit e1f33d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/silx/gui/plot/backends/glutils/GLPlotCurve.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# /*##########################################################################
22
#
3-
# Copyright (c) 2014-2022 European Synchrotron Radiation Facility
3+
# Copyright (c) 2014-2023 European Synchrotron Radiation Facility
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -507,8 +507,7 @@ def render(self, context):
507507
distAttrib, 1, gl.GL_FLOAT, False, 0, self.distVboData
508508
)
509509

510-
if width != 1:
511-
gl.glEnable(gl.GL_LINE_SMOOTH)
510+
gl.glEnable(gl.GL_LINE_SMOOTH)
512511

513512
matrix = numpy.dot(context.matrix, mat4Translate(*self.offset)).astype(
514513
numpy.float32

0 commit comments

Comments
 (0)