I read the OpenGL Programimg Guide (Sixth Edition).
- It said that the parameter
targetofglBindDatafunction only can be set withGL_ARRAY_BUFFERandGL_ELEMENT_ARRAY_BUFFER. - But the parameter
targetofglBufferDatacan be set withGL_ARRAY_BUFFER,GL_ELEMENT_ARRAY_BUFFER,GL_PIXEL_UNPACK_BUFFERandGL_PIXEL_PACK_BUFFER.
Why can the same parameter have the different value?
If you meant
glBindBuffer, then it’s wrong. You can callglBindBufferwith any of the targets.Are you sure you’re reading the book correctly? Did it say that you could only bind to those targets, or has it simply not talked about
GL_PIXEL_PACK/UNPACK_BUFFERat that point?