I narrowed it down to
Code: Select all
tex = driver->addRenderTargetTexture( core::dimension2du(w,h), "rt_ssd", video::ECF_A8R8G8B8 );
Code: Select all
video::ITexture* tex = 0;
if (driver->getTexture("rt_ssd"))
{
printf("removeTexture()\n");
driver->removeTexture(driver->getTexture("rt_ssd"));
}
tex = driver->addRenderTargetTexture( core::dimension2du(w,h), "rt_ssd", video::ECF_A8R8G8B8 );
how can i get the size of the backbuffer and why does it share anything with my rtt?//! Adds a new render target texture to the texture cache.
/** \param size Size of the texture, in pixels. Width and
height should be a power of two (e.g. 64, 128, 256, 512, ...)
and it should not be bigger than the backbuffer, because it
shares the zbuffer with the screen buffer.
i like to create a render target texture 8192x8192 (max tex size of my GraphicsCard) for offscreen rendering without any damn limitation.
thx