@@ -1097,7 +1097,8 @@ RenderSurface* Renderer::GetDepthStencil(int width, int height, int multiSample,
{
// Return the default depth-stencil surface if applicable
// (when using OpenGL Graphics will allocate right size surfaces on demand to emulate Direct3D9)
- if (width == graphics_->GetWidth() && height == graphics_->GetHeight() && graphics_->GetMultiSample() <= 1)
+ if (width == graphics_->GetWidth() && height == graphics_->GetHeight() && multiSample == 1 &&
+ graphics_->GetMultiSample() == multiSample)
return 0;
else