mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 07:15:37 +00:00
Merge pull request #1016 from Azaezel/alpha41/mangledMath
clean up math varsize complaints
This commit is contained in:
commit
a6f03897ed
30 changed files with 73 additions and 68 deletions
|
|
@ -661,7 +661,7 @@ void Material::_mapMaterial()
|
|||
mMapTo = mDiffuseMapName[0];
|
||||
else
|
||||
// use everything after the last slash
|
||||
mMapTo = String(mDiffuseMapName[0]).substr(slashPos + 1, strlen(mDiffuseMapName[0]) - slashPos - 1);
|
||||
mMapTo = String(mDiffuseMapName[0]).substr(slashPos + 1, (U32)strlen(mDiffuseMapName[0]) - slashPos - 1);
|
||||
}
|
||||
else if (!mDiffuseMapAsset->isNull())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ bool ProcessedShaderMaterial::init( const FeatureSet &features,
|
|||
}
|
||||
if (mMaterial && mMaterial->mDiffuseMapName[0] != StringTable->EmptyString() && String(mMaterial->mDiffuseMapName[0]).startsWith("#"))
|
||||
{
|
||||
String texTargetBufferName = String(mMaterial->mDiffuseMapName[0]).substr(1, strlen(mMaterial->mDiffuseMapName[0]) - 1);
|
||||
String texTargetBufferName = String(mMaterial->mDiffuseMapName[0]).substr(1, (U32)strlen(mMaterial->mDiffuseMapName[0]) - 1);
|
||||
NamedTexTarget *texTarget = NamedTexTarget::find(texTargetBufferName);
|
||||
RenderPassData* rpd = getPass(0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue