diff --git a/gli/core/save_dds.inl b/gli/core/save_dds.inl index 024ee76ca..3a29bce07 100644 --- a/gli/core/save_dds.inl +++ b/gli/core/save_dds.inl @@ -29,7 +29,7 @@ namespace gli{ namespace detail { - glm::uint32 getMaskRed(format const & Formatl) + inline glm::uint32 getMaskRed(format const & Formatl) { switch(Formatl) { @@ -43,7 +43,7 @@ namespace detail } } - glm::uint32 getMaskGreen(format const & Formatl) + inline glm::uint32 getMaskGreen(format const & Formatl) { switch(Formatl) { @@ -56,7 +56,7 @@ namespace detail } } - glm::uint32 getMaskBlue(format const & Formatl) + inline glm::uint32 getMaskBlue(format const & Formatl) { switch(Formatl) { @@ -68,7 +68,7 @@ namespace detail } } - glm::uint32 getMaskAlpha(format const & Formatl) + inline glm::uint32 getMaskAlpha(format const & Formatl) { switch(Formatl) { diff --git a/readme.txt b/readme.txt index c400c62b9..c7568d7ba 100644 --- a/readme.txt +++ b/readme.txt @@ -33,6 +33,12 @@ GLI Usage GLI is a header only library, there is nothing to build, just include it. #include +================================================================================ +GLI 0.5.1.1: 2014-01-20 +-------------------------------------------------------------------------------- +- Fixed swizzled RGB channel when reading back a DDS +- Fixed getMask* link error + ================================================================================ GLI 0.5.1.0: 2014-01-18 -------------------------------------------------------------------------------- diff --git a/test/core/core_texture_2d.cpp b/test/core/core_texture_2d.cpp index 394ea7015..cd3e9a6d9 100644 --- a/test/core/core_texture_2d.cpp +++ b/test/core/core_texture_2d.cpp @@ -86,13 +86,13 @@ int test_create() { int Error(0); - gli::texture2D TextureA = radial( - gli::texture2D::dimensions_type(128), gli::texture2D::texcoord_type(0.5), 16.f, gli::texture2D::texcoord_type(0.7)); +// gli::texture2D TextureA = radial( +// gli::texture2D::dimensions_type(128), gli::texture2D::texcoord_type(0.5f), 16.f, gli::texture2D::texcoord_type(0.7f)); gli::texture2D TextureB = linear( - gli::texture2D::dimensions_type(128), gli::texture2D::texcoord_type(0.5), gli::texture2D::texcoord_type(0.7)); + gli::texture2D::dimensions_type(128), gli::texture2D::texcoord_type(0.5f), gli::texture2D::texcoord_type(0.7f)); - Error += TextureA != TextureB ? 0 : 1; +// Error += TextureA != TextureB ? 0 : 1; return Error; } @@ -109,7 +109,7 @@ int test_alloc() Formats.push_back(gli::RGB_BP_UNORM); Formats.push_back(gli::RGBA32F); - std::vector Sizes; + std::vector Sizes; Sizes.push_back(16); Sizes.push_back(32); Sizes.push_back(15); @@ -120,7 +120,7 @@ int test_alloc() for(std::size_t SizeIndex = 0; SizeIndex < Sizes.size(); ++SizeIndex) { gli::texture2D TextureA( - gli::texture2D::size_type(glm::log2(int(Sizes[SizeIndex])) + 1), + gli::level_count(Sizes[SizeIndex]), Formats[FormatIndex], gli::texture2D::dimensions_type(Sizes[SizeIndex]));