Fix texture loading
This commit is contained in:
parent
c7572cf782
commit
da91e92124
@ -33,7 +33,7 @@ Texture::Texture(std::string texturePath) {
|
||||
throw std::exception();
|
||||
}
|
||||
|
||||
unsigned char *data = stbi_load_from_memory((stbi_uc *) buf->buffer, buf->length, &width, &height, &nrChannels, 0);
|
||||
unsigned char *data = stbi_load_from_memory((stbi_uc *) buf->buffer, buf->length, &width, &height, &nrChannels, 3);
|
||||
delete buf;
|
||||
|
||||
float borderColor[] = {1.0f, 0.0f, 1.0f, 1.0f};
|
||||
|
Loading…
Reference in New Issue
Block a user