aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CNullDriver.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-04-21 18:09:49 +0200
committersfan5 <sfan5@live.de>2021-04-21 18:18:47 +0200
commit3152a6cc463add40e0369962485c9479c4b27490 (patch)
tree31da8476faf65de611c096d91924dad56aa824c3 /source/Irrlicht/CNullDriver.cpp
parent688debb6435103f5944330120da456732b246804 (diff)
downloadirrlicht-3152a6cc463add40e0369962485c9479c4b27490.tar.xz
CNullDriver: store real size for dummy textures
Diffstat (limited to 'source/Irrlicht/CNullDriver.cpp')
-rw-r--r--source/Irrlicht/CNullDriver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/Irrlicht/CNullDriver.cpp b/source/Irrlicht/CNullDriver.cpp
index 87a51df..0f91df2 100644
--- a/source/Irrlicht/CNullDriver.cpp
+++ b/source/Irrlicht/CNullDriver.cpp
@@ -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)