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

VideoBackends: Fix crashes introduced by #4999 #5051

Merged
merged 2 commits into from Mar 9, 2017
Merged

VideoBackends: Fix crashes introduced by #4999 #5051

merged 2 commits into from Mar 9, 2017

Conversation

stenzek
Copy link
Contributor

@stenzek stenzek commented Mar 9, 2017

Fixes a crash introduced by #4999, thanks to @sepalani for identifying it in #5050.

Other main issue was the crashing when higher internal resolutions were selected. This was a more complicated fix, due to the design of the base classes.

The most straightforward solution (and IMO the cleanest) was to move the max texture size to backend info. However, the initialization here for GL had to be moved to VideoBackend, as the Renderer constructor will not have been executed before the value is required.

IMO, we should move the remaining logic from the GL Renderer constructor here as well, especially the stuff that can cause startup to fail (which currently is not handled at all).

This stops the virtual method call from within the Renderer constructor.

The initialization here for GL had to be moved to VideoBackend, as the
Renderer constructor will not have been executed before the value is
required.
@stenzek stenzek changed the title Renderer fixes VideoBackends: Fix crashes introduced by #4999 Mar 9, 2017
@degasus degasus merged commit ef74c5e into dolphin-emu:master Mar 9, 2017
@stenzek stenzek deleted the renderer-fixes branch June 13, 2017 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants