From 37afc0ec508df35325126fa6dfbff741a5eb914f Mon Sep 17 00:00:00 2001 From: jnyfah Date: Thu, 1 Aug 2024 07:38:09 +0100 Subject: [PATCH] failed test --- ZEngine/tests/bitmap_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ZEngine/tests/bitmap_test.cpp b/ZEngine/tests/bitmap_test.cpp index d2614b71..a2d6598c 100644 --- a/ZEngine/tests/bitmap_test.cpp +++ b/ZEngine/tests/bitmap_test.cpp @@ -40,10 +40,10 @@ TEST(BitmapTest, TestVerticalCross) Bitmap in = {width, height, channel, BitmapFormat::FLOAT, image_data}; Bitmap vertical_cross = Bitmap::EquirectangularMapToVerticalCross(in); Bitmap cubemap = Bitmap::VerticalCrossToCubemap(vertical_cross); - stbi_image_free((void*) image_data); + //stbi_image_free((void*) image_data); - stbi_write_hdr("screenshot.hdr", vertical_cross.Width, vertical_cross.Height, vertical_cross.Channel, (const float*) vertical_cross.Buffer.data()); - stbi_write_hdr("screenshot2.hdr", cubemap.Width, cubemap.Height, cubemap.Channel, (const float*) cubemap.Buffer.data()); + //stbi_write_hdr("screenshot.hdr", vertical_cross.Width, vertical_cross.Height, vertical_cross.Channel, (const float*) vertical_cross.Buffer.data()); + //stbi_write_hdr("screenshot2.hdr", cubemap.Width, cubemap.Height, cubemap.Channel, (const float*) cubemap.Buffer.data()); auto current_path = std::filesystem::current_path().string();