Browse Source

Fixed ResetRenderTargets() on OpenGL.

Lasse Öörni 14 years ago
parent
commit
142f3c2e49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/Graphics/OpenGL/OGLGraphics.cpp

+ 1 - 1
Engine/Graphics/OpenGL/OGLGraphics.cpp

@@ -1163,7 +1163,7 @@ void Graphics::ResetRenderTargets()
     for (unsigned i = 0; i < MAX_RENDERTARGETS; ++i)
     for (unsigned i = 0; i < MAX_RENDERTARGETS; ++i)
         SetRenderTarget(i, (RenderSurface*)0);
         SetRenderTarget(i, (RenderSurface*)0);
     SetDepthStencil((RenderSurface*)0);
     SetDepthStencil((RenderSurface*)0);
-    SetViewport(0, 0, width_, height_);
+    SetViewport(IntRect(0, 0, width_, height_));
 }
 }
 
 
 void Graphics::ResetRenderTarget(unsigned index)
 void Graphics::ResetRenderTarget(unsigned index)