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

libretro: context cleanup #19203

Merged
merged 1 commit into from
May 28, 2024
Merged

Conversation

sonninnos
Copy link
Contributor

A few changes in order to be able to toggle fullscreen with all available video drivers, at least on my Windows setup, so please test with other platforms. Also tried multiple core launches and closes on the same run, and all seems very solid here.

  • Disabled cached context for both gl and glcore
  • Added context destroy to vulkan stub to make it work when context is not cached, but decided to enable caching anyway
  • Some whitespace tabulation cleanups

Please let me know if this gpu->DeviceLost(); method is not the best possible, but at least it works.

Closes #10784

@hrydgard
Copy link
Owner

Looks OK to me, assuming you have tested it thoroughly, which it seems you have!

@hrydgard hrydgard added the Libretro Issue on Libretro but not all ports. label May 28, 2024
@hrydgard hrydgard added this to the v1.18.0 milestone May 28, 2024
@BParks21
Copy link

BParks21 commented Jun 2, 2024

It's better. RA will crash if I press F to go to window mode too quickly after launching a PSP game. If I wait a little longer then it doesn't crash RA. Or if I go in and out of fullscreen too quickly back to back it will crash. So doesn't seem completely stable. Using Chains of Olympus as an example. If I wait for the game to get past the ReadyatDawn screen then press F it doesn't seem to crash. If I do it sooner than that it tends to crash. Or like I said just going back and forth quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Libretro Issue on Libretro but not all ports.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(libretro) context_reset is broken
3 participants