View Full Version : Vertex Array Rande (nvdia) Problems!!

05-27-2002, 10:48 AM
Iīm trying to implement VAR in my game, but itīs quite a difficult task.
I have the following code:

unsigned char *m_memory = 0;

m_memory = (unsigned char*)wglAllocateMemoryNV(128*sizeof(float), 0, 0, .5f);

But it crashes!! Can anybody tell where my mistake is??
Even if I donīt copy any data in my "allocated" memory, my program crashes...:-(
Thanks in advance!

[This message has been edited by TheBlob (edited 05-27-2002).]

05-27-2002, 10:58 AM
Did you retrieve a function pointer for wglAllocateMemoryNV using wglGetProcAddress?

05-27-2002, 11:09 AM
Yes I did, but after I called wglAllocateMemoryNV !!!
Sorry to steal your time!