Browse Source

don't need this memcpy now

testing
cinnaboot 6 years ago
parent
commit
9ddc9131f5
  1. 1
      src/util_image.cpp

1
src/util_image.cpp

@ -14,7 +14,6 @@ utilLoadImage(const char* full_path)
LOG(Info) << "Loading Image: " << full_path << "\n";
util_image image;
std::memcpy(image.file_path, full_path, std::strlen(full_path) + 1);
stbi_set_flip_vertically_on_load(1);
image.pixels = stbi_load(full_path, &image.w, &image.h, &image.num_channels, 0);
image.bits_per_channel = 8;

Loading…
Cancel
Save