Browse Source

Fixed postprocessing viewport size when using postprocess-defined rendertargets.

Lasse Öörni 14 years ago
parent
commit
708b8b5d48
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Engine/Graphics/View.cpp

+ 1 - 0
Engine/Graphics/View.cpp

@@ -1373,6 +1373,7 @@ void View::RunPostProcesses()
                 
                 graphics_->SetRenderTarget(0, rt);
                 graphics_->SetDepthStencil(GetDepthStencil(rt));
+                graphics_->SetViewport(IntRect(0, 0, rt->GetWidth(), rt->GetHeight()));
             }
             
             // Set shaders, shader parameters and textures