Original Post
I''m trying to create an index buffer but I keep getting E_OUTOFMEMORY. The size my prog is trying to allocate is 996 bytes. I shouldn''t be out of memory. I tried making it smaller as well but that made no difference. I tried both 16-bit and 32-bit indicies. As well as how it is allocated and usage flags.. This is stumping me...
Here''s the line of code:
ret = Display->D3DDevice->CreateIndexBuffer ((Mesh.numTris * 3) * 2, D3DUSAGE_WRITEONLY, D3DFMT_INDEX16, D3DPOOL_MANAGED, &Mesh.Indicies);
arggg
-Zims