Hi, I'm trying to do buffer object using Mesa3D 6.4.2 on Fedora Core 5. However, when I call glGenBuffers, it doesn't do anything to the array I put in. For example
GLuint Buf = 0;
glGenBuffers( 1, &Buf );
//Buf is still = 0
GLuint Buffers[5];
for ( int i = 0; i < 5; i++ ) { Buffers = 10; }
glGenBuffers( 5, Buffers );
//all elements are still 10
In other words, glGenBuffers does nothing. I'm using glXGetProcAddress to retrieve the function pointer to glGenBuffers by the way. I put it in a wrapper like so:
class GLHelper
{
public:
void* GetProcAddr( std::string Name ) { return( (void*)glXGetProcAddress( (const GLubyte*)Name.c_str() ) ); }
};
When I'm running this code under Windows, everything is ok, except that I use wglGetProcAddress instead.
Has anyone has this problem or know how to solve it? Thanks