What is the new replacement for bgl module code in Blender 3.5.0+?

Can someone provide new replacement for this code in Blender 3.5.0+?

# GL_BLEND must be enabled for any smoothing to work.
bgl.glEnable(bgl.GL_LINE_SMOOTH) # antialiasing


see at the bottom gpu - Addon stopped working on Mac/Metal in v3.5+ due to shader compile error. Console spam errors about bgl.glEnable calls - Blender Stack Exchange

1 Like

For smoothed lines you basically either use POLYLINE_UNIFORM_COLOR bultin or you reimplement this builtin it in your shader manually.

1 Like

Thanks for advice.
I used new gpu updated functions and not happy at this moment.