Kaynağa Gözat

Merge pull request #668 from AtomicGameEngine/Fix-View3D

Fix typo in View3D size check
Lasse Öörni 10 yıl önce
ebeveyn
işleme
7b05a853d4
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Source/Urho3D/UI/View3D.cpp

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

@@ -69,7 +69,7 @@ void View3D::OnResize()
     int width = GetWidth();
     int height = GetHeight();
     
-    if (width > 0 && height >> 0)
+    if (width > 0 && height > 0)
     {
         renderTexture_->SetSize(width, height, rttFormat_, TEXTURE_RENDERTARGET);
         depthTexture_->SetSize(width, height, Graphics::GetDepthStencilFormat(), TEXTURE_DEPTHSTENCIL);