-
Notifications
You must be signed in to change notification settings - Fork 28
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
Silent crash if OpenGL version is lower than 3.2 #23
Comments
I think the problem is actually with my Windows machine, because I have tried a lot of different combinations of libraries, tried building with MINGW and MSVC, and all produced binaries fail exactly the same. Also, tried precompiled version by @zYg-sys, same result. Not really sure what I am missing, as other OpenGL software runs just fine. |
Hi @tpimh . It could be a problem with the video card driver on your machine. It has been reported that some default drivers on Windows only support older versions of OpenGL. Try to update the drivers with the official version of the video card manufacturer. The OpenGL version used in CadZinho is 3.2. It's the same one used in Blender 3D, if you want to test another application. Another possible cause, which I think is unlikely, is the incompatibility of the GLEW DLL, which may have been compiled for another architecture. |
Yes, this was the case! I checked, and my OpenGL version showed OpenGL 1.1, which after the driver update became 3.3, and CadZinho started just fine. I will update the title of the issue now. Maybe it's a good idea to implement an OpenGL version check before trying to create context? glGetString(GL_VERSION) should be easy to parse, but maybe there is a way to get major and minor versions separately. |
I have tried to build CadZinho with MSVC (VS2019 for both x64 and x86). These are the libraries that I was using:
The executable launches, but crashes with this error:
With a debugger, I figured out that this is the exact line that crashes:
CadZinho/src/draw_gl.c
Line 54 in 843a064
How can I debug further to provide valuable information?
The text was updated successfully, but these errors were encountered: