Original Post
Hi, i got a problem:
When i do this:
OBJ objects[1024];
everything goes fine, but when i do this:
OBJ *objects=NULL;
and then in a function that loads an object i do this the first time a model is loaded:
if(objects==NULL){objects=new OBJ[1024];};
The object is correctly loaded after this but for some reason when i draw the object data using the glPrint function there is access violation at the line:
glListBase(base);
So, is there any difference between allocating the array at startup and allocating it using new?
Thanks in advance!