@@ -1641,7 +1641,7 @@ void View::SetRenderTargets(RenderPathCommand& command)
graphics_->GetDummyColorFormat(), false, false, false);
}
#endif
- graphics_->SetRenderTarget(0, depthOnlyDummyTexture_);
+ graphics_->SetRenderTarget(0, GetRenderSurfaceFromTexture(depthOnlyDummyTexture_));
graphics_->SetDepthStencil(GetRenderSurfaceFromTexture(texture));
else
@@ -297,7 +297,7 @@ private:
/// Texture containing the latest viewport texture.
Texture* currentViewportTexture_;
/// Dummy texture for D3D9 depth only rendering.
- Texture2D* depthOnlyDummyTexture_;
+ Texture* depthOnlyDummyTexture_;
/// Viewport rectangle.
IntRect viewRect_;
/// Viewport size.