Browse Source

Merge pull request #668 from AtomicGameEngine/Fix-View3D

Fix typo in View3D size check
Lasse Öörni 10 years ago
parent
commit
7b05a853d4
1 changed files with 1 additions and 1 deletions
  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 width = GetWidth();
     int height = GetHeight();
     int height = GetHeight();
     
     
-    if (width > 0 && height >> 0)
+    if (width > 0 && height > 0)
     {
     {
         renderTexture_->SetSize(width, height, rttFormat_, TEXTURE_RENDERTARGET);
         renderTexture_->SetSize(width, height, rttFormat_, TEXTURE_RENDERTARGET);
         depthTexture_->SetSize(width, height, Graphics::GetDepthStencilFormat(), TEXTURE_DEPTHSTENCIL);
         depthTexture_->SetSize(width, height, Graphics::GetDepthStencilFormat(), TEXTURE_DEPTHSTENCIL);