Solved [D3D11] Why am I getting this draws when injecting?

Hexui Undetected CSGO Cheats PUBG Accounts

Moltivie

Full Member
Apr 6, 2020
17
138
0
Game Name
Green Hell
Anticheat
N/A
Tutorial Link
N/A
How long you been coding/hacking?
10 months
Coding Language
c++
Hello there, basically I've re-downloaded directx11 to try it again with this game. I had to tweak some settings to make injectable but everything I got is this:


1610568169547.png


A bunch of triangles and some game's modified color as the contrast, when all I am doing on my code is a DrawBox().

Anyone know what's the matter?


CODE:

C++:
HRESULT __stdcall hkPresent(IDXGISwapChain* pThis, UINT SyncInterval, UINT Flags)
{
    if (!rd11.pDevice || rd11.pSwapchain != pThis)
    {
        rd11.InitD3DDraw(pThis);
    }

    //enable this to test or debug viewport
    //rd11.TestRender();

    rd11.DrawBox(15,15,3,5, red);



    return rd11.oPresentTramp(pThis, SyncInterval, Flags);
}
 
Last edited:

mambda

headass
Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
2,315
37,938
271
Save render states before you call your own functions

restore before you exit your hook

similar concept to trampoline hooks
 

SuperNewbie

i wanna be your friend
Fleep Tier Donator
Dank Tier Donator
Nobleman
May 5, 2020
55
838
0
Can you post the code for your hook? It's kind of difficult to help without knowing what you're doing. It looks pretty cool and it looks like almost everything lost its textures lol, which I'd assume has something to do with how you handled the rendering contexts.
 

Moltivie

Full Member
Apr 6, 2020
17
138
0
Can you post the code for your hook? It's kind of difficult to help without knowing what you're doing. It looks pretty cool and it looks like almost everything lost its textures lol, which I'd assume has something to do with how you handled the rendering contexts.
Kinda forgot to paste that part 😅. Edited.

Not doing much. It's the basic template and me trying to draw a box.
Even with the TestRender() function, it gives the same texturing
 
Community Mods