PDA

View Full Version : Ubuntu's OpenGL version and Intel G45



glaze
March 8th, 2009, 10:35 AM
I have Intel G45/X4500HD which is a fairly new chipset, but glxinfo shows that my OpenGL version string is 1.4 Mesa 7.2. I think that's why I can't use more advanced features like VBOs or shaders in my OpenGL programs. Direct rendering is enabled and everything works ok, even third party software using shaders etc., but I can't compile my own programs with those features. How can I get these features to work? I'm using Kubuntu 8.10 64-bit.

Sockerdrickan
March 8th, 2009, 03:39 PM
You can dynamically load VBO feaures with glew. Shaders are gonna have to wait for a better driver.

glaze
March 8th, 2009, 04:33 PM
Thanks for the reply. I already found a way to load VBO functions. Example below:


#include <GL/glext.h>
...
PFNGLGENBUFFERSARBPROC glGenBuffersARB = (PFNGLGENBUFFERSARBPROC) SDL_GL_GetProcAddress("glGenBuffersARB");

...
glGenBuffersARB(1, &vboId);

Sockerdrickan
March 8th, 2009, 07:08 PM
Yeah that works but in the future you are going to prefer something like this when it gets down to lots of functions:


#include <GL/glew.h>

glewInit();

GLuint vbo;
glGenBuffers(1,&vbo);
//Do stuff
glDeleteBuffers(1,&vbo);apt://libglew1.5-dev