Commit e5271f7f authored by hybrid's avatar hybrid

Fix typos

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2811 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 1bb093d5
...@@ -826,7 +826,7 @@ bool CD3D9Driver::setRenderTarget(video::ITexture* texture, ...@@ -826,7 +826,7 @@ bool CD3D9Driver::setRenderTarget(video::ITexture* texture,
//! Sets multiple render targets //! Sets multiple render targets
bool CD3D9Driver::setRenderTarget(const core::array<video::IRenderTarget*>& targets, bool CD3D9Driver::setRenderTarget(const core::array<video::IRenderTarget>& targets,
bool clearBackBuffer, bool clearZBuffer, SColor color) bool clearBackBuffer, bool clearZBuffer, SColor color)
{ {
if (targets.size()==0) if (targets.size()==0)
...@@ -876,7 +876,7 @@ bool CD3D9Driver::setRenderTarget(const core::array<video::IRenderTarget*>& targ ...@@ -876,7 +876,7 @@ bool CD3D9Driver::setRenderTarget(const core::array<video::IRenderTarget*>& targ
return false; return false;
} }
CD3D9Texture* tex = static_cast<CD3D9Texture*>(texture[0].RenderTexture); CD3D9Texture* tex = static_cast<CD3D9Texture*>(targets[0].RenderTexture);
// check if we should set the previous RT back // check if we should set the previous RT back
...@@ -898,7 +898,7 @@ bool CD3D9Driver::setRenderTarget(const core::array<video::IRenderTarget*>& targ ...@@ -898,7 +898,7 @@ bool CD3D9Driver::setRenderTarget(const core::array<video::IRenderTarget*>& targ
for (u32 i = 0; i < maxMultipleRTTs; ++i) for (u32 i = 0; i < maxMultipleRTTs; ++i)
{ {
if (FAILED(pID3DDevice->SetRenderTarget(i, reinterpret_cast<CD3D9Texture*>(texture[i])->getRenderTargetSurface()))) if (FAILED(pID3DDevice->SetRenderTarget(i, static_cast<CD3D9Texture*>(targets[i].RenderTexture)->getRenderTargetSurface())))
{ {
os::Printer::log("Error: Could not set render target.", ELL_ERROR); os::Printer::log("Error: Could not set render target.", ELL_ERROR);
return false; return false;
......
...@@ -77,7 +77,7 @@ namespace video ...@@ -77,7 +77,7 @@ namespace video
SColor color=video::SColor(0,0,0,0)); SColor color=video::SColor(0,0,0,0));
//! Sets multiple render targets //! Sets multiple render targets
virtual bool setRenderTarget(const core::array<video::IRenderTarget*>& texture, virtual bool setRenderTarget(const core::array<video::IRenderTarget>& texture,
bool clearBackBuffer=true, bool clearZBuffer=true, bool clearBackBuffer=true, bool clearZBuffer=true,
SColor color=video::SColor(0,0,0,0)); SColor color=video::SColor(0,0,0,0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment