Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJPinto committed May 22, 2024
1 parent eb43a0e commit 7875d89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions engine/src/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,8 @@ bool Model::loadTexture() {
}
}

std::cout << "Format is: " << format << " (" << num_channels << ")" << std::endl;

// Upload data to GPU
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB,
glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format,
GL_UNSIGNED_BYTE, image_data);
glGenerateMipmap(GL_TEXTURE_2D);

Expand Down

0 comments on commit 7875d89

Please sign in to comment.