Applied review requested changes - renamed _data to data.
parent
1cb564aa4b
commit
1b0a0675dc
|
@ -627,7 +627,7 @@ void CMaterialManager::HMtoNMIfNecessary(
|
||||||
{
|
{
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
struct {unsigned char b,g,r,a;} _data;
|
struct {unsigned char b,g,r,a;} data;
|
||||||
char _array[4];
|
char _array[4];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -646,7 +646,7 @@ void CMaterialManager::HMtoNMIfNecessary(
|
||||||
{
|
{
|
||||||
for (unsigned int x = 0; x < sDesc.Width;++x)
|
for (unsigned int x = 0; x < sDesc.Width;++x)
|
||||||
{
|
{
|
||||||
if (pcPointer->_data.b != pcPointer->_data.r || pcPointer->_data.b != pcPointer->_data.g)
|
if (pcPointer->data.b != pcPointer->data.r || pcPointer->data.b != pcPointer->data.g)
|
||||||
{
|
{
|
||||||
bIsEqual = false;
|
bIsEqual = false;
|
||||||
break;
|
break;
|
||||||
|
@ -705,9 +705,9 @@ void CMaterialManager::HMtoNMIfNecessary(
|
||||||
aiColor3D clrColorLine;
|
aiColor3D clrColorLine;
|
||||||
for (unsigned int x = 0; x < sDesc.Width;++x)
|
for (unsigned int x = 0; x < sDesc.Width;++x)
|
||||||
{
|
{
|
||||||
clrColorLine.r += pcPointer->_data.r;
|
clrColorLine.r += pcPointer->data.r;
|
||||||
clrColorLine.g += pcPointer->_data.g;
|
clrColorLine.g += pcPointer->data.g;
|
||||||
clrColorLine.b += pcPointer->_data.b;
|
clrColorLine.b += pcPointer->data.b;
|
||||||
pcPointer++;
|
pcPointer++;
|
||||||
}
|
}
|
||||||
clrColor.r += clrColorLine.r /= (float)sDesc.Width;
|
clrColor.r += clrColorLine.r /= (float)sDesc.Width;
|
||||||
|
|
Loading…
Reference in New Issue