-
-
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 backend with minimimized viewport can assert #3424
Comments
Hello @mq1n , thanks for your report. |
Hello @ocornut, thanks for your quick fix, I just tried on demo app and works well but my own project still has same issue but hr value is 0x08760878(S_PRESENT_OCCLUDED) so I don't understand what can cause to assertion. |
Try changing it to |
Hello again @ocornut, I tried but after this change assertion triggered with S_PRESENT_MODE_CHANGED(0x08760877). Now I switched assertion to SUCCESSED macro and now looks like working well.
Thanks for your help. |
While having a similar issue, I discovered that the proper method for managing HRESULT is to employ the SUCCEEDED or FAILED macro. From Error Handling in COM:
Upon examining our code base, I found 112 instances where Initially, I wanted to propose using the appropriate macro. However, the descriptions for other success codes beginning with "S_" are somewhat unclear. I'm uncertain if there have been instances where a function completely failed but still returned an "S_" code. |
Version/Branch of Dear ImGui:
Version: 1.79
Branch: docking
Full build info: https://gist.github.com/mq1n/5d74b0b889eac7cf9602e09729039028
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx9cpp + imgui_impl_win32.cpp
Compiler: Visual studio 2019 Win32
Operating System: Windows 10 (1909)
My Issue/Question:
Screenshots/Video
https://streamable.com/e4zdt3
The text was updated successfully, but these errors were encountered: