Originally Posted by
Gordon`
why are you using IDirect3DDevice9_Clear when you can use pDevice->Clear, same with SetRenderState etc.
maybe the registers are fucked up, try to save then at the beginning of the function (__asm pushad) and restore them before returning at the end of the function (__asm popad)
doesnt look like hackshield is detecting something, cause then it wouldnt generate the debug file.
also check the detoursize. normally its 5 on a stdcall function (all direct3ddevice9 functions are stdcall) but it depends on how the detour is done (JMP, NOP NOP JMP, PUSH RET, etc)