I experience a problem with using glVertexAttribPointerARB. I setup my arrays like this:
// initialization
glVertexAttribPointerARB(0, 2, GL_FLOAT, GL_FALSE, 0, data); // data - pointer to array of 2-component vectors
glEnableVertexAttribArrayARB(0); // enable array
//…
//main loop
glClear(…);
glLoadIdentity;
glDrawArrays(GL_TRIANGLES, 0, 3);
// swap buffers etc.
The problem is, I get no output. The screen remains black. The same code works fine if I use conventional GL commands(like glVertexPointer), or if I specify triangles via glVertexAttrib2fARB(0,…
I guess it is either a bug in the driver or I should enable some states. But what states?
BTW, I run GeForce3 Ti 200 with 43.45 drivers