|
@@ -1269,6 +1269,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(IntRect(0, 0, width_, height_));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void Graphics::ResetRenderTarget(unsigned index)
|
|
void Graphics::ResetRenderTarget(unsigned index)
|
|
@@ -1319,13 +1320,6 @@ void Graphics::SetRenderTarget(unsigned index, RenderSurface* renderTarget)
|
|
|
SetTexture(i, textures_[i]->GetBackupTexture());
|
|
SetTexture(i, textures_[i]->GetBackupTexture());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (!index)
|
|
|
|
|
- {
|
|
|
|
|
- // Reset viewport and scissor test
|
|
|
|
|
- IntVector2 rtSize = GetRenderTargetDimensions();
|
|
|
|
|
- SetViewport(IntRect(0, 0, rtSize.x_, rtSize.y_));
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void Graphics::SetRenderTarget(unsigned index, Texture2D* texture)
|
|
void Graphics::SetRenderTarget(unsigned index, Texture2D* texture)
|