Create depth texture failed.
#1293
Open
opened 3 years ago by jiangqi9090
·
0 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Sorry for my bad English.
I'm trying to add SSAO, so I create a depth texture
But when after creating the texture, the program will crash because all the dx9 resources became NULL pointers(IDirect3DVertexBuffer9 and textures). I create vertex buffer again and the return value is 8876086c.
I found the problem causes by D3DUSAGE_DEPTHSTENCIL, if I replace it with D3DUSAGE_RENDERTARGET, the program won't crash. I don't know what happened.