Original Post
Im trying to get some 3D in my game so ive implemented D3DX from the Sprite.cpp sample.
Ive pretty much copied and pasted the init code without changing it at all, but when I run it in my game, it spews at the D3DXCreateContext() function, saying:
"DirectDraw does not have enough memory to perform the operation"
I run Sprite.exe (D3DX sample) and it runs perfect.
What could be the problem? Im using the same LIB and H files.
Im not creating the DirectDraw7 Object first either.
Is it possible to have D3DX drawing objects over a DirectDraw primary Surface, along with 2D blits drawing various sprites? I also have about 6 640x480x16bit DDraw7surfaces. Is this ok?
Also, what does #define D3D_OVERLOADS do? (refer to sprite.cpp)