فهرست منبع

leftovers from when we added explicit 16 bit greyscale texture support

AzaezelX 6 سال پیش
والد
کامیت
ccb500f0ca
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Engine/source/terrain/terrFile.cpp

+ 1 - 1
Engine/source/terrain/terrFile.cpp

@@ -699,7 +699,7 @@ void TerrainFile::import(  const GBitmap &heightMap,
 
    // Convert the height map to heights.
    U16 *oBits = mHeightMap.address();
-   if ( heightMap.getFormat() == GFXFormatR5G6B5 )
+   if ( heightMap.getFormat() == GFXFormatL16)
    {
       const F32 toFixedPoint = ( 1.0f / (F32)U16_MAX ) * floatToFixed( heightScale );
       const U16 *iBits = (const U16*)heightMap.getBits();