I am trying to draw a square with VBO in my native blackberry 10 application. My implementation is,
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
g
It has transpired in the comments that tileCoordList
and tileTextureCoordList
are pointers to Square3D
structures.
This means that the sizeof
operator will give you the size of a pointer, not the size of the struct.
You could use e.g.
glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(*tileCoordList), tileCoordList);
instead.