Testing textures
This commit is contained in:
@ -18,7 +18,10 @@ int32_t TextureTool::start() {
|
||||
|
||||
// Load input file
|
||||
File in(flags["input"]);
|
||||
if(!in.open(FILE_MODE_READ)) return 1;
|
||||
if(!in.open(FILE_MODE_READ)) {
|
||||
std::cout << "Failed to open input file " << in.filename << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w, h, channels;
|
||||
auto imageRaw = stbi_load_from_file(in.file, &w, &h, &channels, STBI_rgb_alpha);
|
||||
|
Reference in New Issue
Block a user