-
Notifications
You must be signed in to change notification settings - Fork 66
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
[Unknown Issue] DirectX11 Resize Buffer Hook; Crashing on OBS but functioning properly. #4
Comments
Because your function is wrong. Kiero correctly hooks the function. In the documentation link that you provided, it tells you that before actually calling And then in the code it shows that you first need to set render targets to null, release all outstanding references to the swap chain's buffers, only then call
So that's what you gotta do, because during your initialization and rendering hook you get a device, immediate context, create your own render target view and set render targets yourself:
You need to do the same(as shown in Microsoft's documentation) for your objects in your
It works, and works with all the macaronian hooks out there: Steam Overlay hooking game's functions like Present and ResizeBuffers, MSI Afterburner hooking Steam Overlay's functions, your dll hooking MSI Afterburner's hooks, then something like OBS hooking your dll's hooking. Or in any other order, like if you add your DLL to the import table of the exe, which will then hook before all the other dlls. |
hi everyone i am also facing this resize buffer when i full my game the cheaat menu everything disappear can anyone help me. |
I've been trying to figure out what's wrong with my resize buffer hook, It's functioning properly, as usual, However, there's an issue with it that I don't know which causes it. If I were to hook the resize buffer and then use obs game capture It would crash after resizing.
I've also tried referencing to Microsoft's documentation about DXGI Click for documentation!
The text was updated successfully, but these errors were encountered: