flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
96 stars 13 forks source link

Many examples are choking #72

Closed ohenley closed 7 years ago

ohenley commented 7 years ago

On windows 10, every ogl_tutorials gives the following:

OpenGL version supported: 3. 2 Renderer: GeForce GTX 750 Ti/PCIe/SSE2 Primary_Shading_Language_Version: 1.50 NVIDIA via Cg compiler

An exception occurred in Setup. An exception occurred in Render. An exception occurred in Main_Loop. Tutorial_03 returned a constraint error: Exception name: CONSTRAINT_ERROR Message: gl-objects-programs.adb:274 access check failed

Note: Actually, gl_test-immediate.exe works but every other gl-test-xxxxx returns an acces check failed.

Am I doing something wrong?

Thx.

ohenley commented 7 years ago

hummm it looks like a bad match between Windows 10/Gnat 2015/OpenGL because Globe3D is also choking... and I just build it yesterday on windows 7 and everything was running fine.

flyx commented 7 years ago

Have you tried a newer compiler version (2016 or one of MinGW's binaries)?

ohenley commented 7 years ago

Yes installed 2016... still crashing.

flyx commented 7 years ago

I just tried with GNAT GPL 2017 but that does not even find the glfw dll anymore for some reason. Perhaps you can try with that version (has been released some days ago).