agrippa1994 / DX9-Overlay-API

Overlay API for DirectX 9 based games.
MIT License
127 stars 26 forks source link

Boxes and lines don't work in CSGO #27

Open jribbink opened 7 years ago

jribbink commented 7 years ago

In the game Counter-Strike: Global Offensive, text works but boxes and lines do not. It is quite weird because they only appear when I press '~' to show the console. If I am playing the game normally, the boxes and lines do not show up.

agrippa1994 commented 7 years ago

Sorry for my late answer on this issue.

I had similiar problems in other games, but I'm too unexperienced in DirectX development to find the issue to be honest. :( I guess that we've to find a new way to draw the boxes and lines in the game.

ghost commented 7 years ago

@agrippa1994 Maybe the normal game has some RenderStates set and so boxes and lines won't draw. Maybe set the RenderStates of D3DFont (or just some of them) also when drawing boxes and lines? That should work because the D3DFont are also just some vertexes like boxes and lines.

agrippa1994 commented 7 years ago

@shadowlif This is a good point. I would really appreciate a fix for that :-)

agrippa1994 commented 7 years ago

@jribbink @shadowlif provided a fix which has already been merged. Download the binary and test your application again.