diff options
author | Subv <subv2112@gmail.com> | 2018-03-24 23:35:06 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-03-24 23:35:06 -0500 |
commit | 0ce52b1da2228f3325d94e52bead7335c8b07d1c (patch) | |
tree | db027be43dcb9fecb99fc7f8e698d3affd7e28c2 /src/yuzu/debugger/graphics/graphics_surface.cpp | |
parent | 2c785bd06c8f979fbb869d533204b29d93973d83 (diff) |
GPU: Make the debug_context variable a member of the frontend instead of a global.
Diffstat (limited to 'src/yuzu/debugger/graphics/graphics_surface.cpp')
-rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp index d061013da6..8e6509adc5 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.cpp +++ b/src/yuzu/debugger/graphics/graphics_surface.cpp @@ -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; } |