mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-06 02:00:25 +02:00
Merging r6488 through r6491 from trunk to ogl-es branch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6492 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -71,9 +71,41 @@ static bool polygonOffset(video::E_DRIVER_TYPE type)
|
||||
return result;
|
||||
}
|
||||
|
||||
static bool testSMaterial()
|
||||
{
|
||||
irr::video::SMaterial a;
|
||||
irr::video::SMaterial b;
|
||||
|
||||
// Same by default?
|
||||
if ( !(a == b) )
|
||||
return false;
|
||||
if ( a != b )
|
||||
return false;
|
||||
|
||||
// getting (creating) one texture matrix shouldn't change things
|
||||
b.TextureLayer[0].getTextureMatrix();
|
||||
if ( a != b )
|
||||
return false;
|
||||
|
||||
// no longer same now
|
||||
b.TextureLayer[0].getTextureMatrix().setTextureScale(5.f, 0.5f);
|
||||
if ( a == b )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool material()
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
TestWithAllDrivers(polygonOffset);
|
||||
|
||||
if ( !testSMaterial() )
|
||||
{
|
||||
logTestString("testSMaterial failed\n\n");
|
||||
result = false;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
Tests finished. 72 tests of 72 passed.
|
||||
Compiled as DEBUG
|
||||
Test suite pass at GMT Fri May 05 18:39:44 2023
|
||||
Test suite pass at GMT Tue May 09 10:09:52 2023
|
||||
|
||||
|
Reference in New Issue
Block a user