graphics_surface: Remove superfluous cast.

merge-requests/60/head
bunnei 2018-03-26 21:02:31 +07:00
parent c33abac275
commit d8f745382b
1 changed files with 1 additions and 2 deletions

@ -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;