Browse Source

apply consistent colorspace to cubemaps

Azaezel 7 years ago
parent
commit
d484a1a46e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/gfx/sim/cubemapData.cpp

+ 1 - 1
Engine/source/gfx/sim/cubemapData.cpp

@@ -146,7 +146,7 @@ void CubemapData::updateFaces()
       {
       {
          if (!mCubeFaceFile[i].isEmpty())
          if (!mCubeFaceFile[i].isEmpty())
          {
          {
-            if (!mCubeFace[i].set(mCubeFaceFile[i], &GFXStaticTextureProfile, avar("%s() - mCubeFace[%d] (line %d)", __FUNCTION__, i, __LINE__)))
+            if (!mCubeFace[i].set(mCubeFaceFile[i], &GFXStaticTextureSRGBProfile, avar("%s() - mCubeFace[%d] (line %d)", __FUNCTION__, i, __LINE__)))
             {
             {
                initSuccess = false;
                initSuccess = false;
                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());