mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 11:19:07 +00:00
3D: Set matrix modes after changing render target in effect
--HG-- branch : multipass-stereo
This commit is contained in:
parent
339c8b8dfa
commit
2fbf1cb06d
2 changed files with 3 additions and 0 deletions
|
@ -274,6 +274,7 @@ void CBloomEffect::applyBloom()
|
||||||
|
|
||||||
// apply blur with a blend operation
|
// apply blur with a blend operation
|
||||||
drv->setRenderTarget(renderTarget);
|
drv->setRenderTarget(renderTarget);
|
||||||
|
_Driver->setMatrixMode2D11();
|
||||||
applyBlur();
|
applyBlur();
|
||||||
|
|
||||||
// cleanup material texture references
|
// cleanup material texture references
|
||||||
|
@ -356,6 +357,7 @@ void CBloomEffect::doBlur(bool horizontalBlur)
|
||||||
nlwarning("setRenderTarget return false with blur texture for bloom effect\n");
|
nlwarning("setRenderTarget return false with blur texture for bloom effect\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
_Driver->setMatrixMode2D11();
|
||||||
|
|
||||||
// initialize vertex program
|
// initialize vertex program
|
||||||
drvInternal->activeVertexProgram(TextureOffsetVertexProgram);
|
drvInternal->activeVertexProgram(TextureOffsetVertexProgram);
|
||||||
|
|
|
@ -245,6 +245,7 @@ void CFXAA::applyEffect()
|
||||||
dru->setRenderTarget(texNull);
|
dru->setRenderTarget(texNull);
|
||||||
drv->swapTextureHandle(*renderTarget, *otherRenderTarget->getITexture());
|
drv->swapTextureHandle(*renderTarget, *otherRenderTarget->getITexture());
|
||||||
drv->setRenderTarget(renderTarget);
|
drv->setRenderTarget(renderTarget);
|
||||||
|
m_Driver->setMatrixMode2D11();
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
// m_Driver->clearBuffers(CRGBA(128, 128, 128, 128));
|
// m_Driver->clearBuffers(CRGBA(128, 128, 128, 128));
|
||||||
|
|
Loading…
Reference in a new issue