GPU: Make the debug_context variable a member of the frontend instead of a global.

This commit is contained in:
Subv
2018-03-24 23:35:06 -05:00
parent 2c785bd06c
commit 0ce52b1da2
7 changed files with 40 additions and 19 deletions

View File

@ -341,7 +341,10 @@ void GraphicsSurfaceWidget::OnUpdate() {
surface_address = rt.Address();
surface_width = rt.horiz;
surface_height = rt.vert;
surface_format = ConvertToTextureFormat(static_cast<Tegra::RenderTargetFormat>(rt.format));
if (rt.format != 0) {
surface_format =
ConvertToTextureFormat(static_cast<Tegra::RenderTargetFormat>(rt.format));
}
break;
}