mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
companion to #2203: corrects a couple backend profile assignment mismatches found with @rextimmys debug spew
This commit is contained in:
parent
cfbdf63cd7
commit
8bc4858fa3
2 changed files with 6 additions and 6 deletions
|
|
@ -111,7 +111,7 @@ void CubemapData::createMap()
|
||||||
{
|
{
|
||||||
if (!mCubeFaceFile[i].isEmpty())
|
if (!mCubeFaceFile[i].isEmpty())
|
||||||
{
|
{
|
||||||
if (!mCubeFace[i].set(mCubeFaceFile[i], &GFXStaticTextureSRGBProfile, avar("%s() - mCubeFace[%d] (line %d)", __FUNCTION__, i, __LINE__)))
|
if (!mCubeFace[i].set(mCubeFaceFile[i], &GFXStaticTextureProfile, avar("%s() - mCubeFace[%d] (line %d)", __FUNCTION__, i, __LINE__)))
|
||||||
{
|
{
|
||||||
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", mCubeFaceFile[i].c_str());
|
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", mCubeFaceFile[i].c_str());
|
||||||
initSuccess = false;
|
initSuccess = false;
|
||||||
|
|
|
||||||
|
|
@ -307,22 +307,22 @@ void GuiBitmapButtonCtrl::setBitmap( const String& name )
|
||||||
if( mUseModifiers )
|
if( mUseModifiers )
|
||||||
baseName += modifiers[ i ];
|
baseName += modifiers[ i ];
|
||||||
|
|
||||||
mTextures[ i ].mTextureNormal = GFXTexHandle( baseName, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__));
|
mTextures[ i ].mTextureNormal = GFXTexHandle( baseName, &GFXDefaultGUIProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__));
|
||||||
|
|
||||||
if( mUseStates )
|
if( mUseStates )
|
||||||
{
|
{
|
||||||
if( !mTextures[ i ].mTextureNormal )
|
if( !mTextures[ i ].mTextureNormal )
|
||||||
mTextures[ i ].mTextureNormal = GFXTexHandle( baseName + s_n, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__));
|
mTextures[ i ].mTextureNormal = GFXTexHandle( baseName + s_n, &GFXDefaultGUIProfile, avar("%s() - mTextureNormal (line %d)", __FUNCTION__, __LINE__));
|
||||||
|
|
||||||
mTextures[ i ].mTextureHilight = GFXTexHandle( baseName + s_h, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureHighlight (line %d)", __FUNCTION__, __LINE__));
|
mTextures[ i ].mTextureHilight = GFXTexHandle( baseName + s_h, &GFXDefaultGUIProfile, avar("%s() - mTextureHighlight (line %d)", __FUNCTION__, __LINE__));
|
||||||
if( !mTextures[ i ].mTextureHilight )
|
if( !mTextures[ i ].mTextureHilight )
|
||||||
mTextures[ i ].mTextureHilight = mTextures[ i ].mTextureNormal;
|
mTextures[ i ].mTextureHilight = mTextures[ i ].mTextureNormal;
|
||||||
|
|
||||||
mTextures[ i ].mTextureDepressed = GFXTexHandle( baseName + s_d, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureDepressed (line %d)", __FUNCTION__, __LINE__));
|
mTextures[ i ].mTextureDepressed = GFXTexHandle( baseName + s_d, &GFXDefaultGUIProfile, avar("%s() - mTextureDepressed (line %d)", __FUNCTION__, __LINE__));
|
||||||
if( !mTextures[ i ].mTextureDepressed )
|
if( !mTextures[ i ].mTextureDepressed )
|
||||||
mTextures[ i ].mTextureDepressed = mTextures[ i ].mTextureHilight;
|
mTextures[ i ].mTextureDepressed = mTextures[ i ].mTextureHilight;
|
||||||
|
|
||||||
mTextures[ i ].mTextureInactive = GFXTexHandle( baseName + s_i, &GFXTexturePersistentSRGBProfile, avar("%s() - mTextureInactive (line %d)", __FUNCTION__, __LINE__));
|
mTextures[ i ].mTextureInactive = GFXTexHandle( baseName + s_i, &GFXDefaultGUIProfile, avar("%s() - mTextureInactive (line %d)", __FUNCTION__, __LINE__));
|
||||||
if( !mTextures[ i ].mTextureInactive )
|
if( !mTextures[ i ].mTextureInactive )
|
||||||
mTextures[ i ].mTextureInactive = mTextures[ i ].mTextureNormal;
|
mTextures[ i ].mTextureInactive = mTextures[ i ].mTextureNormal;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue