I finally found out what this is causing: http://stackoverflow.com/questions/4532342/opengl-gl-lines-enpoints-not-joining
A fix could be to make a line loop with 5 points instead of only 4 to draw a rectangle.
I finally found out what this is causing: http:// stackoverflow. com/questions/ 4532342/ opengl- gl-lines- enpoints- not-joining
A fix could be to make a line loop with 5 points instead of only 4 to draw a rectangle.