Explorar o código

graphics_surface: Remove superfluous cast.

bunnei %!s(int64=8) %!d(string=hai) anos
pai
achega
d8f745382b
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/yuzu/debugger/graphics/graphics_surface.cpp

+ 1 - 2
src/yuzu/debugger/graphics/graphics_surface.cpp

@@ -342,8 +342,7 @@ void GraphicsSurfaceWidget::OnUpdate() {
         surface_width = rt.width;
         surface_height = rt.height;
         if (rt.format != Tegra::RenderTargetFormat::NONE) {
-            surface_format =
-                ConvertToTextureFormat(static_cast<Tegra::RenderTargetFormat>(rt.format));
+            surface_format = ConvertToTextureFormat(rt.format);
         }
 
         break;