CNullDriver: store real size for dummy textures

This commit is contained in:
sfan5
2021-04-21 18:09:49 +02:00
parent 688debb643
commit 3152a6cc46
2 changed files with 5 additions and 1 deletions

View File

@ -725,7 +725,9 @@ video::ITexture* CNullDriver::findTexture(const io::path& filename)
ITexture* CNullDriver::createDeviceDependentTexture(const io::path& name, IImage* image)
{
return new SDummyTexture(name, ETT_2D);
SDummyTexture* dummy = new SDummyTexture(name, ETT_2D);
dummy->setSize(image->getDimension());
return dummy;
}
ITexture* CNullDriver::createDeviceDependentTextureCubemap(const io::path& name, const core::array<IImage*>& image)