diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-26 22:30:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 22:30:03 -0400 |
commit | b4bf099793d8e9a065769c35bb4b8e20bf107549 (patch) | |
tree | 2a9adcdcc7b3947242f3d4717302dc29425e8b0d /src/yuzu/debugger/graphics/graphics_surface.cpp | |
parent | f934da0e4350b1ab98cfdd9a100e83b20d0d95d3 (diff) | |
parent | 5e343edc9e4606ebdf2cceef7a56336e0a92f69c (diff) |
Merge pull request #279 from bunnei/tegra-progress-3
Tegra progress 3
Diffstat (limited to 'src/yuzu/debugger/graphics/graphics_surface.cpp')
-rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp index 8e6509adc..1e4844b57 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.cpp +++ b/src/yuzu/debugger/graphics/graphics_surface.cpp @@ -339,11 +339,10 @@ void GraphicsSurfaceWidget::OnUpdate() { static_cast<size_t>(Source::RenderTarget0)]; surface_address = rt.Address(); - surface_width = rt.horiz; - surface_height = rt.vert; - if (rt.format != 0) { - surface_format = - ConvertToTextureFormat(static_cast<Tegra::RenderTargetFormat>(rt.format)); + surface_width = rt.width; + surface_height = rt.height; + if (rt.format != Tegra::RenderTargetFormat::NONE) { + surface_format = ConvertToTextureFormat(rt.format); } break; |