Re: Windows crashes when I use dynamic textures with D3DLOCK_DISCA



I agree with, but it doesn't work in my case. I did exactly as you said.
-----------------
1) Initialize windowed 512x512 Direct3D 8.1 mode
2) I create 512x512 D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT
texture
3) LockRect with D3DLOCK_DISCARD, fill the texture, UnLockRect
(Then I click "Button1")
4) Call again LockRect with D3DLOCK_DISCARD and it crashes Windows.
------------------
More likely it's a bug of DirectX 8.1 headers. But we use 8.1 because WinXP
has built-in support of this version. All other moments of DirectX works just
fine.

Thanks for your response!
It's very interesting to hear how wonderful dynamic textures works. Exactly
what we need.
version)
.


Loading