mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
CNullDriver: store real size for dummy textures
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user