Pārlūkot izejas kodu

Merge pull request #386 from Azaezel/alpha40_createCompositeCopypasta

adress #385
Brian Roberts 4 gadi atpakaļ
vecāks
revīzija
80eb4ab2ba
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Engine/source/gfx/gfxTextureManager.cpp

+ 1 - 1
Engine/source/gfx/gfxTextureManager.cpp

@@ -1199,7 +1199,7 @@ GFXTextureObject *GFXTextureManager::createCompositeTexture(GBitmap*bmp[4], U32
          if (bmp[0])
          if (bmp[0])
             rChan = bmp[0]->getChanelValueAt(x, y, inputKey[0]);
             rChan = bmp[0]->getChanelValueAt(x, y, inputKey[0]);
          else
          else
-            gChan = 255;
+            rChan = 255;
 
 
          if (bmp[1])
          if (bmp[1])
             gChan = bmp[1]->getChanelValueAt(x, y, inputKey[1]);
             gChan = bmp[1]->getChanelValueAt(x, y, inputKey[1]);