Skip to content
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

wrong UI rendering of d3d8 games #189

Open
RUEEE opened this issue Oct 5, 2024 · 0 comments
Open

wrong UI rendering of d3d8 games #189

RUEEE opened this issue Oct 5, 2024 · 0 comments

Comments

@RUEEE
Copy link
Contributor

RUEEE commented Oct 5, 2024

QQ截图20241006031346
open the in game backspace menu will cause some original UI disappear (like scores)
this is caused by not backup/restore the texture and viewport after rendering.
it's supposed to add the backup/restore of rendering context in thprac_gui_impl_dx8.cpp
like
g_pd3dDevice->GetTexture(0, &g_pOrigTexture) g_pd3dDevice->GetViewport(&g_pOrigViewPort)
and
g_pd3dDevice->SetTexture(0, g_pOrigTexture); g_pd3dDevice->SetViewport(&g_pOrigViewPort);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant