Skip to content

Commit

Permalink
🐛 Fix crash when deleting dummy_image()
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Dec 3, 2024
1 parent 1d6a1b0 commit 76b3296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cool/TextureSource/default_textures.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Cool {

inline auto dummy_image() -> img::Image const&
{
static auto instance = img::Image{img::Size{1, 1}, img::PixelFormat::RGB, img::FirstRowIs::Bottom, std::array<uint8_t, 3>{255, 0, 255}.data()};
static auto instance = img::Image{img::Size{1, 1}, img::PixelFormat::RGB, img::FirstRowIs::Bottom, new uint8_t[]{255, 0, 255}};
return instance;
}
inline auto dummy_texture() -> Texture const&
Expand Down

0 comments on commit 76b3296

Please sign in to comment.