Imagination PowerVR SDK Blog

Clone Buffer Object?


#1

 glBindBuffer( buf.type, buf.glObj );
 glGetBufferParameteriv( buf.type, GL_BUFFER_SIZE, &size );
 char *data = new char[size];
 glGetBufferSubData( buf.type, 0, size, data ); 




This was opengl version clone buffer code .but opengl es don't support glGenBufferSubData.
So Any other suggestions to get Buffer data ?

#2

OpenGL ES unfortunately doesn’t allow read access to buffer objects. You’ll have to use the original source data.





Could you give a short description of what you want to use this for?Xmas2009-11-20 16:22:23