mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Texture working finally !
This commit is contained in:
@ -228,7 +228,7 @@ void Scene::loadTextures()
|
||||
unsigned char* image = stbi_load(path.c_str(), &width, &height, &channels, STBI_rgb_alpha);
|
||||
|
||||
if (!image)
|
||||
throw std::runtime_error("Failed to load texture");
|
||||
throw std::runtime_error("Failed to load texture " + path);
|
||||
|
||||
std::cout << "Loaded texture: " << path << " (" << width << "x" << height << ")" << std::endl;
|
||||
|
||||
|
Reference in New Issue
Block a user