mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #354 from Azaezel/alpha40_compositCreationCoughup
fix for empty r channel creation of composites crashing out
This commit is contained in:
commit
6860bddf35
1 changed files with 4 additions and 1 deletions
|
|
@ -1196,7 +1196,10 @@ GFXTextureObject *GFXTextureManager::createCompositeTexture(GBitmap*bmp[4], U32
|
||||||
{
|
{
|
||||||
for (U32 y = 0; y < bmp[lastValidTex]->getHeight(); y++)
|
for (U32 y = 0; y < bmp[lastValidTex]->getHeight(); y++)
|
||||||
{
|
{
|
||||||
rChan = bmp[0]->getChanelValueAt(x, y, inputKey[0]);
|
if (bmp[0])
|
||||||
|
rChan = bmp[0]->getChanelValueAt(x, y, inputKey[0]);
|
||||||
|
else
|
||||||
|
gChan = 255;
|
||||||
|
|
||||||
if (bmp[1])
|
if (bmp[1])
|
||||||
gChan = bmp[1]->getChanelValueAt(x, y, inputKey[1]);
|
gChan = bmp[1]->getChanelValueAt(x, y, inputKey[1]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue