Bugfix: Previously when some material had a texture matrix and another didn't those materials were still considered identical. Which had prevented correct switching between materials with and without texture matrices.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5340 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
da3c88d0e1
commit
e064db1355
|
@ -1,6 +1,7 @@
|
|||
--------------------------
|
||||
Changes in 1.9 (not yet released)
|
||||
|
||||
- Bugfix: Previously when some material had a texture matrix and another didn't those materials were still considered identical. Which had prevented correct switching between materials with and without texture matrices.
|
||||
- IWriteFile::write now returning size_t (like fwrite in c-lib). Also sizeToWrite parameter changed from u32 to size_t.
|
||||
- IReadFile::read now returning size_t (like fread in c-lib). Also sizeToRead parameter changed from u32 to size_t.
|
||||
- add clear function to strings.
|
||||
|
|
|
@ -165,8 +165,7 @@ namespace video
|
|||
return true;
|
||||
else
|
||||
different |= (TextureMatrix != b.TextureMatrix) &&
|
||||
TextureMatrix && b.TextureMatrix &&
|
||||
(*TextureMatrix != *(b.TextureMatrix));
|
||||
(!TextureMatrix || !b.TextureMatrix || (*TextureMatrix != *(b.TextureMatrix)));
|
||||
return different;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue