From ccb500f0cab9d19d1d6962aa73acfd39f94717f6 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 22 Aug 2019 04:33:38 -0500 Subject: [PATCH] leftovers from when we added explicit 16 bit greyscale texture support --- Engine/source/terrain/terrFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/terrain/terrFile.cpp b/Engine/source/terrain/terrFile.cpp index 1ae32dc73..0970f48bc 100644 --- a/Engine/source/terrain/terrFile.cpp +++ b/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();