anothercoder

glGenBuffers returns 0xffff0000 on first call

Discussion created by anothercoder on Aug 24, 2012
Latest reply on Aug 29, 2012 by anothercoder

Using Catalyst 12.8 on a 7850 (also tested on 12.8 on a 6470M in my laptop)

 

The first call to glGenBuffers returns 0xFFFF0000.

 

Here's a little code snippet to reproduce:

 

// create GL context...

 

// then

GLuint dummy0 = 0;

glGenBuffers(1,&dummy0);

glBindBuffer(GL_ARRAY_BUFFER, dummy0);

printf("glIsBuffer(0x%X)=%s\n", dummy0, (dummy0 > 0 && glIsBuffer(dummy0)) ? "Yes" : "No");

glBindBuffer(GL_ARRAY_BUFFER, 0);

 

GLuint dummy1 = 0;

glGenBuffers(1,&dummy1);

glBindBuffer(GL_ARRAY_BUFFER, dummy1);

printf("glIsBuffer(0x%X)=%s\n", dummy1, (dummy1 > 0 && glIsBuffer(dummy1)) ? "Yes" : "No");

glBindBuffer(GL_ARRAY_BUFFER, 0);

 

The output (for me) is:

glIsBuffer(0xFFFFF000)=Yes

glIsBuffer(0x1)=Yes

 

Seems like the driver recognizes the 0xFFFF0000 buffer as valid, but there may be an underlying issue why it assigns them this way.

 

Thanks

Outcomes