Am Thursday 25 June 2009 20:26:01 schrieb Tony Wasserka:
Watch out, some surfaces aren't lockable. I don't know the d3dx9 api too well, but are you sure that you have a lockable surface here?
In some situations IDirect3DDevice9::UpdateSurface or IDirect3DDevice9::StretchRect may be a faster way to achieve what this code does(without colorkeying though).