The problem im having is with the Lines sample. If ripped this apart to play with just points and then triangles, however when Im writing to the main buffer with 3 vertices im getting a fourth at what looks like 0,0.
for (i = 0; i < NUM_VERTICES; i++)
{
// we make local copies of the line into the main buffer here, so we don't have to flush the cache
struct Vertex* vertices = sceGuGetMemory(3 * sizeof(struct Vertex));
// create a lineloop
vertices = triangle;
sceGuDrawArray(GU_POINTS,GU_VERTEX_32BITF|GU_TRANSFORM_2D,3,0,vertices);
}
If I just write triangle directly from its current memory location I dont get the fourth point on screen :|
Can anyone help.