-
Notifications
You must be signed in to change notification settings - Fork 199
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES #221
Comments
I think the fix should look different. Your old platform supports:
Which means it supports Open GL Shaders up to version 1.2 (Openhantek needs 1.5 at least) and it supports Open GL ES Shaders up to 1.0 (that's fine for Openhantek). Shader version to OpenGL version table is here: https://github.com/mattdesl/lwjgl-basics/wiki/glsl-versions#glsl-versions OpenHantek will only run with OpenGL ES on your old platform. Use the "--useGLES" switch or ask Qt in c++ which shader version is supported and implement an automatic switch to OpenGL ES :) |
Hi, unfortunately mesa, the OpenGL implementation for linux is very conservative in what it reports as its version. Even the latest version in testing (18.3.2) reports on my Lenovo T400:
even if it is able to deliver 4.5 functionality.
Calling OpenHantek with these env settings works well and the screen reports OpenGL rendering. Martin @coozoo : I found the shader change 150 -> 120 in your commit coozoo@01b42d3 - I'll have a look when I have some spare time. |
The @coozoo solution is in the active repo and is used if the run-time check detects OpenGL version < 3.2 at start. |
Hello, This program looks great. I have downloaded the current master code and i compiled it, but it doesn't work for me. I have the same versions of OpenGL / OpenGL ES $ glxinfo | grep OpenGL $ OpenHantek $ OpenHantek --useGLES Then it runs, does not show errors and the oscilloscope initialization seems ok (the led gets green) but the window doesn't redraw. There is no signal and it only redraws when i resize it manually. I'm programmer but i have no experience with linux user interfaces and Qt/OpenGL... Thank you. |
Hi, Your OpenGL version is quite old (Mesa 13.0.6), which system do you use?
You can check if my environment magic from above can help you: Otherwise please try the glscope.cpp part of this commit: OpenHantek/OpenHantek6022@97540df This repo is unmaintained and I forked it half a year ago and did a lot of development since. Unfortunately my target is only Hantek 6022 and I removed all other devices from the code some time ago. But you can try the last legacy branch of my fork, it's the snapshot before the "great cleaning". HTH Martin |
Hello
First of all I want to thank you guys for software you've did great job :)
This error appeared for me when I've compiled it and tried to launchit on my laptop:
QOpenGLShader::compile(Vertex): 0:2(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES
On the next platform:
So I've made some fix for that. (Forgive me if I'm doing something wrong it's my first attempt to intrude into another project :) )
And as I absolutely dumb in a OpenGL it's better to verify what I've did few times )
So here's main moments of fix:
When I've tried to use it.
I've got another error from OpenGL that precision should be defined for vertex. I've tried to set it bu got another error and didn't found a way to handle it out.
So the way how I did fix just by changing version from 100 to 120 where you don't need to set precision.
I don't like such fix because that means decreasing of supported devices...
After that OpenGL ES works fine.
So I've modified vertex/shaders code to version 120 (I'm not sure about correctness, but it's working :) ).
It's set version to minimum supported by QT for compatibility (at least I think it's a good).
format.setVersion(format.majorVersion(), format.minorVersion());
But the best solution it would be determine version of opengl before setting up useGles decide what of opengl version we should use and set version appropriately.
So after everything done additionally to previous platform I've verified this fix for another one (much more newer) with such configuration:
I wanna try it for some andoird device once I will find how to compile it for device.
PS now need to find how to pull request and attach it somehow :)
The text was updated successfully, but these errors were encountered: