so I put:
delete[] verts1;
and it still alows me to use verts1 in other functions. I don't think that is working.
so I put:
delete[] verts1;
and it still alows me to use verts1 in other functions. I don't think that is working.
Yes, it should be delete [] verts instead of delete verts.
If you call delete [], and then use the pointer elsewhere, it might work, or it might not. That is undefined behavior. It will usually cause your program to crash. The point is you must make sure that you don't use verts after you delete [] it.
so basicly just delete it in the clean up process. ok I'll do that.