Skip to content
Snippets Groups Projects
Commit 75896e06 authored by Trevor Hollmann's avatar Trevor Hollmann
Browse files

[#64] Fix bug in hacky texture load...

parent 1ec28a3e
No related branches found
No related tags found
1 merge request!51Resolve "Laden mehrer Meshes mit Materials und Textures"
Pipeline #25423 passed
......@@ -203,8 +203,8 @@ int loadMesh(const std::string &path, Mesh &mesh) {
std::string img_uri = dir + "/" + img.uri;
int w, h, c;
// FIXME hardcoded to always have RGBA channel layout
uint8_t *data = stbi_load(img_uri.c_str(), &w, &h, &c, 4);
c = 4; // FIXME hardcoded to always have RGBA channel layout
if (!data) {
std::cerr << "ERROR loading texture image data.\n";
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment