paroj / gltut

Learning Modern 3D Graphics Programming
https://paroj.github.io/gltut/
MIT License
1.57k stars 377 forks source link

Tutorials segfault #40

Closed paroj closed 8 years ago

paroj commented 12 years ago

Originally reported by: wesdec (Bitbucket: wesdec, GitHub: Unknown)


All tutorials segfault on my system (Ubuntu 10.04). Below is the gdb output.

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) where
#0  0x00000000 in ?? ()
#1  0x08051a13 in init () at tut1.cpp:133
#2  0x08052f11 in main (argc=1, argv=0xbffff3f4) at framework.cpp:158

Line 133 of tut1.cpp is this:

glGenVertexArrays(1, &vao);

Furthermore the output of glload::LoadFunctions(); in main() is 0.

Please let me know if I can assist in anyway.


paroj commented 12 years ago

Original comment by Anonymous:


Thanks I can confirm that I now get the warning. Good job on the opengl book/tutorial by the way. By far the best book I have read on opengl!

paroj commented 12 years ago

Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):


Warning added in [[https://bitbucket.org/alfonse/gltut/changeset/79e66e109dfb |79e66e109dfb ]]

paroj commented 12 years ago

Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):


Thank you for the graphics card information. That explained everything.

The problem is that your drivers are old. You need to attempt to update them to something recent. You're using a laptop, so that may be difficult. But the tutorials will only work if you can use GL 3.3. And I only really test the tutorials on recent drivers.

However, I will see about adding code to the framework to more cleanly detect this problem and print an appropriate output message.

paroj commented 12 years ago

Original comment by wesdec (Bitbucket: wesdec, GitHub: Unknown):


By the way this is my graphics card:

OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Mobility Radeon HD 3400 Series
OpenGL version string: 3.2.9756 Compatibility Profile Context
OpenGL shading language version string: 1.50