Hi,
As a preamble, here are my specs:
Acer 5552G Laptop
AMD Phenom II X4 N970
AMD Radeon HD 6650M (supports up to OpenGL 4.0)
4 GB of RAM
Also, I’m trying to port an opengl tutorial series (
http://www.opengl-tutorial.org/ ), and I was able to compile everything fine
there, with one or two very minor tweaks.
A few days ago, I asked for help in loading OpenGL 3.2 functions, and I was
told to use Glew, which to the most of my knowledge is working, however, I’m
having a weird issue with my program (
http://code.google.com/p/opengl-3x-tutorials-sdl/ > grab a copy off SVN).
Everything compiles fine, but when running, the window closes almost
immediately. I wasn’t sure what was going on, so I ran things through gdb,
which gave this output:
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x00401653 in _fu38___ZNSs4_Rep20_S_empty_rep_storageE (argc=1,
argv=0x8618a8) at tutorial06.cpp:48
#2 0x00405408 in console_main (argc=1, argv=0x8618a8) at
src/main/windows/SDL_windows_main.c:142
#3 0x00405487 in WinMain (hInst=0x400000, hPrev=0x0, szCmdLine=0x5c324d
"", sw=10) at src/main/windows/SDL_windows_main.c:199
#4 0x00404f86 in main ()
So, on that note, some forum posts recommended gl3w, so I downloaded that,
and I get another batch of errors.
So, after some fiddling, it seems that if I don’t try and set the opengl
context version, it automatically bumps up to 4.0, and gl3w works fine.
Is this a SDL issue, or is it more in the handles of OpenGL and gl3w?
Thanks guys,
-Alex