Closed DanielO closed 6 years ago
Hm, according to https://support.apple.com/en-us/HT202823 most macs support OpenGL 3.3. The developer website says something about OpenGL 3.2 core profile. Try changing the version string that fails for you in glscope.cpp from "#version 330" to "#version 320".
OK, so there is hope :) I did some googling and added
// Specify an OpenGL 3.3 format using the Core profile.
// That is, no old-school fixed pipeline functionality
QGLFormat glFormat;
glFormat.setVersion( 3, 3 );
glFormat.setProfile( QGLFormat::CoreProfile ); // Requires >=Qt-4.8.0
glFormat.setSampleBuffers( true );
after " QApplication openHantekApplication(argc, argv);" in main.cpp but no change..
Similar to if I try 320 as the version (or 220 and 120..)
Related to #155 Wikipedia lists the shading versions: https://www.wikiwand.com/en/OpenGL_Shading_Language#/Versions Interesting is this line:
GLSL Version | OpenGL Version | Date | Shader Preprocessor |
---|---|---|---|
1.50.11[5] | 3.2 | August 2009 | #version 150 |
Can you please try "#version 150"
I have fixed the shader version and did some more things. Wait for the Pull Request to be merged and try it again please :)
Yep that works, thanks :)
I pulled a36eccc to test building the firmware extractor and now find OpenHantek crashes after selecting my device with..
The stack trace is
I think MacOSX's GL implementation is very old :(
FWIW this is on a 2013 MBP running High Sierra with an Intel Iris GPU.