Fixed rtts in GLES legacy pipeline

This commit is contained in:
Deve 2017-03-01 23:20:21 +01:00
parent 282bb6c655
commit 067518df5d
2 changed files with 6 additions and 4 deletions

View File

@ -2653,9 +2653,10 @@ namespace video
}
ITexture* COGLES2Driver::addRenderTargetTexture(
const core::dimension2d<u32>& size,
const io::path& name, const ECOLOR_FORMAT format)
ITexture* COGLES2Driver::addRenderTargetTexture(const core::dimension2d<u32>& size,
const io::path& name,
const ECOLOR_FORMAT format,
const bool useStencil)
{
//disable mip-mapping
const bool generateMipLevels = getTextureCreationFlag(ETCF_CREATE_MIP_MAPS);

View File

@ -317,7 +317,8 @@ namespace video
virtual u32 getMaximalPrimitiveCount() const;
virtual ITexture* addRenderTargetTexture(const core::dimension2d<u32>& size,
const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN);
const io::path& name, const ECOLOR_FORMAT format = ECF_UNKNOWN,
const bool useStencil = false);
virtual bool setRenderTarget(video::ITexture* texture, bool clearBackBuffer,
bool clearZBuffer, SColor color);