-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DirectX9: Texture bug, IDirect3DStateBlock9 might contains invalid values. #3857
Comments
interesting bug, but why? I recommend a nice toolkit to debug d3d9: IntelGPA. Hope it can help you. |
Hello, Same reaction as Demonese. Before we go on adding random workarounds like this, I would like that you carry the burden of proof here by providing a repro or a deeper study or sufficient documentation as to why this would be needed. Providing info about the hooked software, drivers involved, and maybe a video or with/without would give extra context. |
Hi, I understand perfectly, I'm just reporting some buggy behavior. Of course, hooking into a process and redirecting the 3D Renderer is also not something common. I'll try to provide you some video with the For now, I uploaded my overlay here if you need to take a look: https://github.com/Nemirtingas/ingame_overlay/ I tweaked a bit Dear ImGui on my fork: https://github.com/Nemirtingas/imgui Here, I've uploaded a video of the bug happening: https://imgur.com/a/6ayy2vp |
…apture() after CreateStateBlock() which appears to workaround/fix state restoring issues. . (#3857)
Thank you @Nemirtingas for the details and video. |
Thank you. |
I can also confirm that this gitch occurs in other source games and this does in fact fix it. |
Hi bro texture problem |
Version/Branch of Dear ImGui:
Version:
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx9.cpp + imgui_impl_win32.cpp
Compiler: MSVC
Operating System: Windows 10 - 1909 - 18363.1379
CPU: Intel Core i5-7300HQ
GPU: NVidia GTX 1060 3Gb
GPU Driver: NVidia 452.06
My Issue/Question:
I'm building an in-game overlay, some games that use DX9 have an issue when using ImGui, some textures disapear when I open my overlay, it looks like the issue is triggered by the state block.
imgui/backends/imgui_impl_dx9.cpp
Lines 133 to 134 in cdf1926
Adding a call to
IDirect3DStateBlock9::Capture
fixed those issues.The text was updated successfully, but these errors were encountered: