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

RenderBase: Fix a VirtualXFB crash #5050

Closed
wants to merge 1 commit into from

Conversation

sepalani
Copy link
Contributor

@sepalani sepalani commented Mar 9, 2017

Since PR #4999 every backend is crashing when using VirtualXFB in both Release and Debug builds on Windows.

The g_renderer variable is set with std::make_unique<Renderer>();. The thing is, RendererBase's constructor indirectly dereference g_renderer by calling CalculateTargetSize() which is calling FramebufferManagerBase::ScaleToVirtualXfbWidth/Height and might dereference something that is not initialized.

Not sure if it's the right way to patch it. At least, it prevents it to crash.

Ready to be reviewed and merged.

@sepalani
Copy link
Contributor Author

sepalani commented Mar 9, 2017

Closed in favor of #5051.

@sepalani sepalani closed this Mar 9, 2017
@sepalani sepalani deleted the fix_renderer branch March 9, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant