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

Use OpenGL 3.2 instead of 3.3 to make MacOSX work again #159

Closed davidgraeff closed 6 years ago

davidgraeff commented 6 years ago

Fix:

Optimize:

Code style:

Fixes #154 Fixes #155

Hoagie572 commented 6 years ago

Hi,

I've tried this and found that with a minor tweak it works on a Raspberry Pi 3. When compiling shaders, in glscope.cpp, I set the coreShaders boolean based on the QT_OPENGL_ES_2 definition and #defined QT_OPENGL_ES_2 at the top of the file.

I'm not sure where QT_OPENGL_ES_2 should normally be defined, there's probably a better place than the top of that file.

I'm using the GL driver on the Pi, which can be enabled in the Advanced Options of the raspi-config application.

Regards, Geoff.

Hoagie572 commented 6 years ago

Update: Unsurprisingly, with the Experimental GL driver disabled (the default) it works, but only at about 1 Frame Per Second.