Hi, i am making a game with DirectX9.
I like to use a vertexbuffer with the D3DUSAGE_DYNAMIC flag, ( reading the documents say it will be faster with this flag for dynamic usage )
It all works fine until i go fullscreen when the dynamic buffer is in use, then my game exits/crashes.
I have the feeling it has to do with restoring the renderstate, maybe some code is missing there ?
I read something online that when the D3DPOOL_DEFAULT is used, it needs to restore something ?
the code looks like this :
CreateVertexBuffer( size , D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY , D3DPOOL_DEFAULT , vb , NULL );
How do i fix this ?
thanks