GLEW says about nothing is supported

Hello.

I’m using GLEW to get extensions, but nothing is supported allegedly.

C(++):

	void checkExtensions() {
		std::cout << "GLEW_ARB_vertex_buffer_object is " << (GLEW_ARB_vertex_buffer_object ? "" : "not") << " supported." << std::endl;
		std::cout << "GLEW_ARB_draw_buffers is " << (GLEW_ARB_draw_buffers ? "" : "not") << " supported." << std::endl;
		std::cout << "GLEW_ARB_compute_shader is " << (GLEW_ARB_compute_shader ? "" : "not") << " supported." << std::endl;
		std::cout << "GLEW_ARB_fragment_shader is " << (GLEW_ARB_fragment_shader ? "" : "not") << " supported." << std::endl;
	}

None of those is true. Got a GeForce GT540M in here. That IS a graphics card no? lol. Using SFML and tried GL versions of 3.0 up to 4.3.

Thanks for any help.

EDIT: I am an idiot and tried to init GLEW before context creation. Fixed now.

Did you do:


glewExperimental = GL_TRUE;

before calling glewInit?

Also, you shouldn’t need ARB_vertex_buffer_object, ARB_fragment_shader, or ARB_draw_buffers if you are using any modern version of OpenGL, they have been core for a while. ARB_compute_shader is a different matter, but you don’t need it if you are using OpenGL 4.3 or above, since it became core in 4.3