OpenHantek / openhantek

OpenHantek is a DSO software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes
http://openhantek.org/
GNU General Public License v3.0
771 stars 199 forks source link

Auto-detect OpenGL version compatibility #167

Closed dendvz closed 6 years ago

dendvz commented 6 years ago

@davidgraeff This is an enhancement for switchgl branch that enables auto-detection of OpenGL version. Version 3.2 and higher compiles version 1.5 shaders. All lower OpenGL versions fall back to OpenGL ES format (supposed to be compatible with version 1.0 shaders).

My HP 8440p laptop + Ubuntu Studio 17.10:

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string: 2.1 Mesa 17.2.2
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.2.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions: