PDA

View Full Version : Internal format base type for GL_RGBA8



icebeat
01-22-2013, 12:11 PM
Hi All,

In the documentation for glTexBuffer, the base type of GL_RGBA8 is uint. Is this correct?
If so, how can a GL_RGBA8 be the same type as GL_RGBA32UI?

Thanks,

Carlos.

Nowhere-01
01-22-2013, 12:49 PM
for me it looks like mistype. because GL_RGBA8I is byte. and calling uint format GL_RGBA8 doesn't make much sense. it should be unsigned byte.

Alfonse Reinheart
01-22-2013, 04:38 PM
No it doesn't. (http://www.opengl.org/wiki/GLAPI/glTexBuffer) See? It says right there that it's ubyte, just like the spec. I didn't just change that in the last 5 minutes either (http://www.opengl.org/wiki_132/index.php?title=Template:Glapi_buffertexformats&diff=8559&oldid=8486); it's always been that way. Totally.

Anyway, if you want the "official" documentation fixed, you'll have to file a bug (http://www.khronos.org/bugzilla/enter_bug.cgi?product=OpenGL) on it.

icebeat
01-23-2013, 07:48 AM
Ok, that has sense for me.

Thanks, :D
Carlos.