diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2021-08-26 21:57:27 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-08-27 10:59:31 +0200 |
commit | 9690c1b3e30410f4780dc6466ae474cc1350f82a (patch) | |
tree | 09128dd0088f9e135e62d2a16b87a46c89e98262 /source/Irrlicht/CNullDriver.cpp | |
parent | c26ff3476f5cce6c6ce2d6fa1b88c9dfff3674ca (diff) | |
download | irrlicht-9690c1b3e30410f4780dc6466ae474cc1350f82a.tar.xz |
Merging r6196 through r6248 from trunk to ogl-es branch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6249 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'source/Irrlicht/CNullDriver.cpp')
-rw-r--r-- | source/Irrlicht/CNullDriver.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/Irrlicht/CNullDriver.cpp b/source/Irrlicht/CNullDriver.cpp index 0f91df2..8779cbd 100644 --- a/source/Irrlicht/CNullDriver.cpp +++ b/source/Irrlicht/CNullDriver.cpp @@ -190,7 +190,7 @@ CNullDriver::CNullDriver(io::IFileSystem* io, const core::dimension2d<u32>& scre // set ExposedData to 0
- memset(&ExposedData, 0, sizeof(ExposedData));
+ memset((void*)&ExposedData, 0, sizeof(ExposedData));
for (u32 i=0; i<video::EVDF_COUNT; ++i)
FeatureEnabled[i]=true;
@@ -869,8 +869,8 @@ void CNullDriver::draw2DImage(const video::ITexture* texture, const core::positi draw2DImage(texture,destPos, core::rect<s32>(core::position2d<s32>(0,0),
core::dimension2di(texture->getOriginalSize())),
- 0,
- SColor(255,255,255,255),
+ 0,
+ SColor(255,255,255,255),
useAlphaChannelOfTexture
);
}
@@ -1605,7 +1605,9 @@ core::array<IImage*> CNullDriver::createImagesFromFile(io::IReadFile* file, E_TE {
// dito
file->seek(0);
- if (SurfaceLoader[i]->isALoadableFileFormat(file))
+ if (SurfaceLoader[i]->isALoadableFileFormat(file)
+ && !SurfaceLoader[i]->isALoadableFileExtension(file->getFileName()) // extension was tried above already
+ )
{
file->seek(0);
imageArray = SurfaceLoader[i]->loadImages(file, type);
@@ -2765,9 +2767,9 @@ bool CNullDriver::needsTransparentRenderPass(const irr::video::SMaterial& materi // zwrite disabled and getWriteZBuffer calls this function.
video::IMaterialRenderer* rnd = getMaterialRenderer(material.MaterialType);
- // TODO: I suspect IMaterialRenderer::isTransparent also often could use SMaterial as parameter
+ // TODO: I suspect IMaterialRenderer::isTransparent also often could use SMaterial as parameter
// We could for example then get rid of IsTransparent function in SMaterial and move that to the software material renderer.
- if (rnd && rnd->isTransparent())
+ if (rnd && rnd->isTransparent())
return true;
return false;
|