Marco Bellan 9 лет назад
Родитель
Сommit
e036d74de3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Source/BansheeCore/Source/BsPixelData.cpp

+ 2 - 2
Source/BansheeCore/Source/BsPixelData.cpp

@@ -183,7 +183,7 @@ namespace BansheeEngine
 		return PixelUtil::unpackDepth(mFormat, (unsigned char *)getData() + pixelOffset);;
 	}
 
-	void PixelData::setDepthAt(const float& depth, UINT32 x, UINT32 y, UINT32 z)
+	void PixelData::setDepthAt(const float depth, UINT32 x, UINT32 y, UINT32 z)
 	{
 		UINT32 pixelSize = PixelUtil::getNumElemBytes(mFormat);
 		UINT32 pixelOffset = pixelSize * (z * mSlicePitch + y * mRowPitch + x);
@@ -258,4 +258,4 @@ namespace BansheeEngine
 	{
 		return PixelData::getRTTIStatic();
 	}
-}
+}