I'm trying to learn modern OpenGL with the
OGL Wikibook. I created a Window just fine with SFML, like I did back when I learnt with immediate mode. I tried creating a shader and it failed at runtime. I wrote some code to dump potentially useful data.
std::cout << "BEGIN!" << std::endl;
sf::WindowSettings winsettings;
winsettings.AntialiasingLevel=8;
winsettings.DepthBits=24;
winsettings.StencilBits=8;
sf::Window AppWindow(sf::VideoMode::GetDesktopMode(),"EITBSGBEAB, DV",sf::Style::Fullscreen,winsettings);
AppWindow.ShowMouseCursor(true);
AppWindow.EnableKeyRepeat(true);
AppWindow.SetActive();
std::cout << "VENDOR: " << glGetString(GL_VENDOR) << std::endl;
std::cout << "VERSION: " << glGetString(GL_VERSION) << std::endl;
std::cout << "RENDERER: " << glGetString(GL_RENDERER) << std::endl;
std::cout << "GLEW 2.0: " << (GLEW_VERSION_2_0!=0) << std::endl;
std::cout << "GLEW 2.1: " << (GLEW_VERSION_2_1!=0) << std::endl;
//std::cout << "EXTENSIONS:" << glGetString(GL_EXTENSIONS) << std::endl;
if(!GLEW_VERSION_2_0)
{
std::cout << "OpenGL 2.0 support is nonexistant! :O" <<std::endl;
return 1;
}
BEGIN!
VENDOR: ATI Technologies Inc.
VERSION: 4.2.11740 Compatibility Profile Context
RENDERER: AMD Radeon HD 6700M Series
GLEW 2.0: 0
GLEW 2.1: 0
OpenGL 2.0 support is nonexistant! :O
Process returned 1 (0x1) execution time : 0.608 s
Press any key to continue.
Glewinfo.exe says everything up to to 4.1 is "ok" with my card, my code does say 4.2 but maybe "compatibility mode" counteracts that. I'm thinking it might be something wrong with the way I'm creating the window, but I would've thought SFML would do it right.
Any ideas?