Browse Source

Clang-Tidy - readability-static-accessed-through-instance.

Yao Wei Tjong 姚伟忠 7 years ago
parent
commit
66a02d9b03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/UI/UIComponent.cpp

+ 1 - 1
Source/Urho3D/UI/UIComponent.cpp

@@ -229,7 +229,7 @@ void UIComponent::OnElementResized(StringHash eventType, VariantMap& args)
         return;
     }
 
-    if (texture_->SetSize(width, height, GetSubsystem<Graphics>()->GetRGBAFormat(), TEXTURE_RENDERTARGET))
+    if (texture_->SetSize(width, height, Graphics::GetRGBAFormat(), TEXTURE_RENDERTARGET))
         texture_->GetRenderSurface()->SetUpdateMode(SURFACE_MANUALUPDATE);
     else
         URHO3D_LOGERROR("UIComponent: resizing texture failed.");