瀏覽代碼

graphics_surface: Fix merge conflicts.

bunnei 8 年之前
父節點
當前提交
666d53299c
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 0
      src/video_core/gpu.h
  2. 3 3
      src/yuzu/debugger/graphics/graphics_surface.cpp

+ 1 - 0
src/video_core/gpu.h

@@ -14,6 +14,7 @@
 namespace Tegra {
 namespace Tegra {
 
 
 enum class RenderTargetFormat : u32 {
 enum class RenderTargetFormat : u32 {
+    NONE = 0x0,
     RGBA8_UNORM = 0xD5,
     RGBA8_UNORM = 0xD5,
 };
 };
 
 

+ 3 - 3
src/yuzu/debugger/graphics/graphics_surface.cpp

@@ -339,9 +339,9 @@ void GraphicsSurfaceWidget::OnUpdate() {
                                 static_cast<size_t>(Source::RenderTarget0)];
                                 static_cast<size_t>(Source::RenderTarget0)];
 
 
         surface_address = rt.Address();
         surface_address = rt.Address();
-        surface_width = rt.horiz;
-        surface_height = rt.vert;
-        if (rt.format != 0) {
+        surface_width = rt.width;
+        surface_height = rt.height;
+        if (rt.format != Tegra::RenderTargetFormat::NONE) {
             surface_format =
             surface_format =
                 ConvertToTextureFormat(static_cast<Tegra::RenderTargetFormat>(rt.format));
                 ConvertToTextureFormat(static_cast<Tegra::RenderTargetFormat>(rt.format));
         }
         }