Skip to content

Commit

Permalink
failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyfah committed Aug 1, 2024
1 parent 7f0f645 commit 37afc0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZEngine/tests/bitmap_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 37afc0e

Please sign in to comment.