Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upglLineWidth works incorrectly #278
Comments
This comment has been minimized.
This comment has been minimized.
|
I don't have a computer whose driver actually supports If it does apply (as opposed to changing the shader to actually be lines and then |
This comment has been minimized.
This comment has been minimized.
|
Changing line width is actually a legacy feature. AFAIK OpenGL drivers are are allowed to ignore this value, and some of the machines I work with will do so. |
This comment has been minimized.
This comment has been minimized.
@Archer-zty how exactly did you initialize the context? NanoGUI requests an OpenGL 3.3 forward compatible core profile.
So if you want to go with NanoGUI but keep your linewidth stuff, I believe you cannot request forward compatible or core (meaning use the empty screen constructor, example 3 shows self-managed GLFW). You may also need to request an older profile altogether? That said, I vaguely recall NanoVG (underlying widget library) not working if you remove those. |
Thanks for the project. I have met a problem.


When I test glLineWidth(9.f) on raw glad+glfw, line width is shown as follows:
But the rotating rectangle only occupies 1 piexl in example1.cpp whatever the parameter is.
Any idea?
line 600 in example1.cpp, I change the code like this