mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-07 18:50:28 +02:00
Split CNullDriver::checkImage into 2 functions to avoid some memory allocations in addTexture
Avoid creating dummy arrays when we work with non array images. Just a minor speed improvement. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6329 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -707,6 +707,7 @@ namespace video
|
||||
bool checkPrimitiveCount(u32 prmcnt) const;
|
||||
|
||||
bool checkImage(const core::array<IImage*>& image) const;
|
||||
bool checkImage(ECOLOR_FORMAT format, const core::dimension2du& size) const;
|
||||
|
||||
// adds a material renderer and drops it afterwards. To be used for internal creation
|
||||
s32 addAndDropMaterialRenderer(IMaterialRenderer* m);
|
||||
|
Reference in New Issue
Block a user