On some platform does not support line width > 1.0 and can even throw and
error. Better check an at least display something rather than no lines at
all.
This has wrappers for the most common gl* functions in the codebase, and is in preparation for D3502
Reviewers: brecht, fclem
Differential Revision: https://developer.blender.org/D3501