Original Post
Hi guys, thanks for the wealth of information here on DirectX, fantastic! I have a question about the DirectX hooking sample found here, on some games when I draw an overlayed coloured triangle, it works perfectly (via EndScene wrapper interface hook). However on other games the scene is all messed up (either completely black or extremely pixelated). So my question is, what should I ensure when drawing over the top of a game so as not to upset the rendering? I tried GetRenderState and restoring any "Original" states back to what they were after I have drawn my primatives (aswell as the FVF state)...but that still gave me the problems above. Ultimately i'd like to make my own little generic menu system and "mini game" inside that process. Thanks for any pointers on how to safely draw on another process and what I might be missing.